OPTIONAL
SYNOPSIS
        int pg_pending ()
        int pg_pending (object obj)

DESCRIPTION
        Return the number of pending queries for the connection on the given
        object <obj> (default is the current object). The object has no
        database connection, return -1.

        The function is available only if the driver is compiled with
        PostgreSQL support. In that case, __PGSQL__ is defined.

HISTORY
        Added in 3.3.445.

SEE ALSO
        pgsql(C), pg_connect(E), pg_query(E), pg_close(E)
