pg_getresult — Wait for and return result from asynchronous query
pg_getresult conn
pg_getresult
waits for the database server to
complete a pending asynchronous query, and returns a result handle
for the query.
A result handle from the execution of pg_sendquery.
There are no error conditions. This command will block until a result is available. If no asynchronous query is pending, it returns an empty string.