libzbxpgsql icon indicating copy to clipboard operation
libzbxpgsql copied to clipboard

Incorrect example in documentation

Open Splarv opened this issue 5 years ago • 0 comments

http://cavaliercoder.com/libzbxpgsql/documentation/reference/server/#pg-backends-count

pg.backends.count superuser

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:

pg.backends.count[,,mydb,dbuser,myapp,::1,,active]

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.

Splarv avatar Dec 13 '19 11:12 Splarv