Skip to content

Know why your PostgreSQL got slower.

Querywake finds the queries that got slower, separates a real regression from more traffic, and shows the evidence for what changed, so you know where to investigate next.

Where it runs

The public collector supports PostgreSQL 14–19. It reads statistics through a read-only monitoring role.

Free plan

One database. No card needed, and the plan does not expire.

Slower executionsCriticalExpired

Mean execution time went from 0.318 ms to 21.8 ms.

Each execution of the statement takes longer than its baseline. Detection rule met: added 526.6 ms/s ≥ 250 ms/s.

select count(*), sum(amount) from bench.orders where customer_id = $1

Mean execution time
×68.6
0.318 ms → 21.8 ms
Execution time per second
×66.6
8.0 ms/s → 534.4 ms/s
Leading explanation
Index no longer used
Likely · 3 observations of 2 kinds support it; none against.
Expired after
11 min
time spent active

ImpactDetection window against the frozen baseline.

Impact of the incident, per metric
MetricBaselineDuringChange
Mean execution time0.318 ms21.8 ms×68.6 (adverse)
Calls per second25.24/s24.51/s×0.97
Execution time per second8.0 ms/s534.4 ms/s×66.6 (adverse)
Rows per call1 row1 row×1.00
Shared blocks read per call0 blocks0 blocks—
Shared blocks hit per call18 blocks4919 blocks×273
Temp blocks written per call0 blocks0 blocks—

Mean execution timeOne hour, 30 s buckets. Shaded while the incident was active.

Calls per secondSame hour. The statement ran as often as before (×0.97).

A recorded lab run, not a customer database: PostgreSQL 17 under pgbench on 2026-12-01, where the index behind a customer lookup was dropped and later restored. Every figure is from that recording. Open this incident in the demo.

A slower query and a busier query are different problems.

A statement that takes more total time because it runs twice as often needs a different response from one whose plan changed. Querywake compares each statement with its own baseline and reports each kind of change on its own.

Not real time

Querywake compares windows of collected statistics. A new database needs about an hour of history before a regression can be detected.
Slower executions
Each execution of the statement takes longer than its baseline.
More executions
The statement runs more often than its baseline.
More execution time
The statement spends more time executing per second than its baseline.
More temporary file use
Queries write more temporary blocks (work spilling past work_mem) than their baseline.
Lower buffer cache effectiveness
A larger share of block requests missed shared buffers than in the baseline.
More lock waiting
More sessions waited on heavyweight locks than in the baseline.
More rollbacks
Transactions rolled back at a higher rate than in the baseline.
Workload mix changed
The share of execution time across statements shifted compared with the baseline.

Every cause comes with what supports it, what speaks against it and what could not be observed.

Causes are ranked by fixed rules over the collected evidence, not guessed probabilities. What contradicts an explanation and what the telemetry cannot see get the same space as what supports it, so you can check the reasoning yourself.

The rule

A cause is likely with supporting evidence of at least two kinds and no contradiction. It is possible when the support exceeds the contradiction.

No percentages

An assessment is likely, possible, unlikely or not assessable. Evidence is never turned into a confidence score.
  • Index no longer used

    AssessmentLikely
    Observed
    • index indexrelid 16447 on relid 16440 present at the start of the window and no longer reported at its end
    • sequential scans on relid 16440 rose from 0.000/s to 72.986/s
    • shared blocks hit per call ×273
    Againstnone
    Not observable
    • Statements are not linked to the relations they access in telemetry; only plans establish that link.
  • Execution plan change

    AssessmentPossible
    Observed
    • shared blocks hit per call ×273
    Againstnone
    Not observable
    • No plan for this statement was supplied (plans are never captured automatically).
  • Lock contention

    AssessmentUnlikely
    Observednone
    Against
    • no session waited on a heavyweight lock in any of 9 lock samples
    Not observable
    • Lightweight-lock (LWLock) and buffer-pin waits are not sampled.
  • Cache pressure

    AssessmentUnlikely
    Observednone
    Against
    • more buffer hits per call without more reads: more pages touched, not fewer cached
    Not observable
    • Shared-buffer misses may still be served by the OS page cache; track_io_timing shows actual read time.
  • Sorts or hashes spilling to disk

    AssessmentUnlikely
    Observednone
    Against
    • temporary blocks written per call did not increase
    Not observablenone
  • Parameter or data distribution shift

    AssessmentNot assessable
    Observednone
    Againstnone
    Not observable
    • Parameter values are never collected; a shift to more expensive parameters cannot be observed directly.
  • Shared resource contention

    AssessmentNot assessable
    Observednone
    Againstnone
    Not observable
    • Host CPU, I/O and wait-event time series are not part of the analyzed telemetry.
The explanation of the incident above, as the console shows it. Every candidate the rules considered is listed, including those nothing supports and those that could not be assessed. Walk through the full incident.

Upload EXPLAIN plans and Querywake compares them.

The comparison separates what changed in the structure of the plan from what was measured to change.

How plans arrive

Querywake never runs EXPLAIN. Upload and comparison are on every subscription, Free included. Paid subscriptions can also pick up plans that auto_explain already writes to the PostgreSQL log.
Access path changed
Bitmap Heap Scan via orders_customer_idx to Seq Scan
no ratio
Parallelism gained
no parallel workers to 2 workers
no ratio
Execution time increased
0.552 ms to 32.022 ms
×58.0
Buffers increased
18 to 4974
×276
Two plans for the lab statement, compared: one reads through orders_customer_idx, the other scans the table.

It reads statistics. It does not change your database.

Here is what it does not do. Read the security overview.

Where it is verified

Analysis is certified on PostgreSQL 15 to 19, self-hosted and in Docker; 14 has legacy support. Managed-provider setup follows each provider's documentation and is not yet verified by Querywake.
No writes, no EXPLAIN
The collector connects with a pg_monitor role that has a connection limit. Querywake never writes to your database and never runs EXPLAIN. Every check it suggests is for a person to review and apply.
No parameter values, no table data
Query text is off by default. When you turn it on, statements arrive normalized, with literals replaced by $1. Parameter values and table data are never collected.
No generated explanations
Detection and cause analysis are fixed rules over the collected statistics. Querywake runs no language model, so the same evidence always gives the same assessment.
Nothing of ours inside PostgreSQL
No agent or extension of ours runs in the server. pg_stat_statements is the only requirement.
Credentials stay with you
With the collector, the database URL is read on your host. Querywake receives statistics and a collector token you can rotate or revoke. Query text, log events and plans are sent only if you turn them on.
Survives network outages
The collector spools to local disk with a size cap and sends what it buffered when the connection returns.

Connect with one prompt, or by hand.

Either way the steps are the same, and superuser is never needed.

Open-source collector

Download Linux x86-64 or ARM64 builds, or build a Docker image from source. The public collector supports PostgreSQL 14–19. Collector release on GitHub (opens in a new tab)

With your coding agent

Use your existing coding agent to prepare your database and set up Querywake monitoring. No additional AI subscription required, and the prompt tells your agent to ask before every change.

The prompt contains no credentials. You enter secrets yourself on the setup page, and setup counts as done only when Querywake receives telemetry.

Read the setup guide

By hand

  1. Create a read-only role

    Enable pg_stat_statements and grant pg_monitor to a login role. The collector never needs superuser.

    CREATE ROLE querywake LOGIN PASSWORD '…';
    GRANT pg_monitor TO querywake;
    ALTER ROLE querywake CONNECTION LIMIT 5;
    CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
  2. Run the collector next to PostgreSQL

    One binary or container on a host that reaches the database. The connection string stays on that host.

    querywake probe   -c /etc/querywake/collector.toml
    querywake collect -c /etc/querywake/collector.toml
  3. Wait for the first analysis

    After about an hour of history, a statement that regresses opens an incident with its ratio, its window and its likely causes.

Start with one database, free.

The Free plan needs no card and does not expire. Paid plans sample more often, keep more history and add advisors, integrations and AI agent access.