Previous: , Up: Connection functions   [Index]


7.2.3 Retrieving information on the connection and on the server

Loadable Function: val = pq_conninfo (connection, label)

Retrieves connection information for postgresql connection connection, specified by the string label, and returns the value of this information in val. The type of val depends on the requested information. Currently, the only recognized label is 'integer_datetimes'; val is true if 8-byte date and time values are stored as integer in the server, and false if they are stored as double (which is deprecated).