pg_blocking − see or set whether or not a connection is set to blocking or nonblocking
pg_blocking conn [mode]
pg_blocking can set the connection to either blocking or nonblocking, and it can see which way the connection is currently set.
conn |
The handle of a connection to the database in which the large object exists. | ||
mode |
If present, sets the mode of the connection to nonblocking if 0. Otherwise it sets the connection to blocking. |
Returns nothing if called with the mode argument. Otherwise it returns 1 if the connection is set for blocking, or 0 if the connection is set for nonblocking.