Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect example in documentation #156

Open
Splarv opened this issue Dec 13, 2019 · 0 comments
Open

Incorrect example in documentation #156

Splarv opened this issue Dec 13, 2019 · 0 comments

Comments

@Splarv
Copy link

Splarv commented Dec 13, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant