Returns the number of active backend processes for remote connections.
Type: Numeric (unsigned)
Parameters:
connection string - libpq compatible keyword/value connection string
connection database - connection database (default: username from connection string)
database - database name or OID (may be different to the connected database)
user - user name or OID
client - client hostname or IP address (hostname only supported on PostgreSQL v9.1 and above)
waiting - processes waiting on a lock
true - only return waiting processes
false - only return processes that are not waiting
default - no filtering based on waiting status
Example:
According to the doc only 6 parameters s accepted, but in the example is 8 parameters. Parameters myapp and active is not documented and even absent in the source.
http://cavaliercoder.com/libzbxpgsql/documentation/reference/server/#pg-backends-count
According to the doc only 6 parameters s accepted, but in the example is 8 parameters. Parameters myapp and active is not documented and even absent in the source.