pg_socket Get a read only handle to the socket underlying a PostgreSQL connection &reftitle.description; resourcefalsepg_socket resourceconnection pg_socket returns a read only resource corresponding to the socket underlying the given PostgreSQL connection. &warn.undocumented.func; &reftitle.parameters; connection PostgreSQL database connection resource. &reftitle.returnvalues; A socket resource on success&return.falseforfailure;.