Skip to content

Differentiate maintenance queries from user generated queries #4864

@steve-chavez

Description

@steve-chavez

Problem

When querying pg_stat_statements to debug some slow query generated by a user the results obtained will also contain our maintenance queries (generated by the schema cache and in-db config, at startup and reloading), which make it harder to pinpoint the particular query.

One workaround for this is filtering by the patterns of the queries. Like %with role_setting%, with %base_types%, etc; but doing this requires knowing PostgREST implementation details.

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    ideaNeeds of discussion to become an enhancement, not ready for implementationobservability
    No fields configured for Feature.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions