Skip to content

Action query_time alerts replication process in PostgreSQL 10 #139

@lusor

Description

@lusor

PostgreSQL 10 now lists the replication process in pg_stat_activity. This leads to check_postgres --action=query_time finding that process and reporting it as long running query.
Here's an example row of pg_stat_activity:

-[ RECORD 1 ]----+---------------------------------
datid            |
datname          |
pid              | 26414
usesysid         | 17326
usename          | somereplicationuser
application_name | myappname
client_addr      | 12.34.56.78
client_hostname  | host.example.com
client_port      | 35912
backend_start    | 2018-01-31 13:52:49.120219+01
xact_start       |
query_start      |
state_change     | 2018-01-31 13:52:49.13702+01
wait_event_type  | Activity
wait_event       | WalSenderMain
state            | active
backend_xid      |
backend_xmin     |
query            |
backend_type     | walsender

Would it be possible to exclude those processes?

Thanks a lot

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