Add additional connection check in pg_select, Use standard code for generating Tcl error status.
Add additional connection check in pg_select, Use standard code for generating Tcl error status.

flightaware/Pgtcl,flightaware/Pgtcl