PHP Function pg_connection_busy()
The function pg_connection_busy() checks if the server is busy buffering asynchronous commands. It basically calls libpq's PQconsumeInput() and then PQisBusy() (both documented in Asynchronous Command Processing). It is not related to the server being busy overall with other connections, but rather if a queue of pending queries is running at the moment.
Most PostgreSQL functions expect a connection parameter. If not specified, the last connected database instance is used. pg_connect() opens a new connection to a PostgreSQL database. If connect_type is PGSQL_CONNECT_FORCE_NEW, a new connection is created even if the connect_string is identical to an existing one.
pg_prepare() prepares a single SQL statement to be executed with pg_execute() or pg_send_execute(). A prepared statement can be reused by executing it again, and thus is faster to execute than a raw SQL command. Unlike pg_prepare(), it does not require a pre-specified set of parameter types.
pg_sql_int_type() converts an integer value into a PHP binary string. It also supports conversion from float to int and vice versa.