Skip to content

Incorrect example in documentation #156

@Splarv

Description

@Splarv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions