Querywake for Neon
Querywake detects PostgreSQL performance regressions from the statistics Neon already keeps in pg_stat_statements, and shows the evidence for each likely cause. This page says how to connect a Neon database and what Querywake has and has not checked on Neon.
Status
Reviewed
Status
A hosted connection to Neon on PostgreSQL 17 via a direct endpoint passed Querywake's TLS and data-collection test. Hosted connections are not open on querywake.dev yet, so use the collector, whose setup follows Neon's published documentation and is not yet verified.
PostgreSQL versions: Provider-, plan- and region-dependent; confirm your instance major.
How to connect
- Self-hosted collector. Not live-certified. The collector is the option for private networks. You run one small read-only process on a host that can reach Neon; the connection string stays on that host.
- Connection string. Use the direct endpoint, without -pooler. Private networking requires the collector inside your network. Querywake verified TLS and telemetry collection on PostgreSQL 17 via a direct endpoint. Not open on querywake.dev yet; use the collector.
- Example host:
<endpoint>.<region>.aws.neon.tech:5432 - TLS: verify-full. Public CA roots; use the provider hostname and SNI.
Monitoring role
Enable pg_stat_statements in the monitored database. Compute suspension can reset counters. Create the monitoring role using SQL. Do not use a console-created role that inherits neon_superuser.
-- As an administrator, once. The collector never needs superuser.
CREATE ROLE querywake LOGIN PASSWORD '<choose a password>';
GRANT pg_monitor TO querywake; -- read statistics of all sessions and statements
ALTER ROLE querywake CONNECTION LIMIT 5;
-- In the database the collector connects to:
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;The role needs no superuser and no access to your tables. Querywake refuses administrator logins and roles that can write. Check that the grant gives effective statistics access before you rely on it.
What works on Neon
- Regression detection and cause analysis use pg_stat_statements and the standard statistics views, so they do not depend on the provider beyond the grant above.
- Plan comparison of EXPLAIN output you upload works on every plan, whatever the provider.
- Automatic plan capture and PostgreSQL log events read PostgreSQL's jsonlog files on the database host. Neon does not give your hosts those files, and Querywake has not verified them on Neon.
Things to check
- Continuous monitoring can keep serverless compute awake and raise provider charges. Pause monitoring if uninterrupted collection is not worth the cost; pausing leaves a data gap. This is not suspend-aware polling.
- Do not add public addresses, authorized networks or allow-list entries to make a hosted connection work; use the collector inside the private network instead.
- Querywake has not verified PostgreSQL 19 on this provider. Check that the provider offers it before choosing it, and expect no Querywake claim for it until it is verified.
Connection errors and their fixes are listed under Troubleshooting in the setup guide.
Neon documentation
- neon.com/docs/connect/choose-connection
- neon.com/docs/introduction/scale-to-zero
- neon.com/docs/extensions/pg_stat_statements
- neon.com/docs/reference/api/endpoints/get-project-endpoint
- neon.com/docs/manage/orgs-api
Next: create a free account (one database, no card), compare plans or read what Querywake can access.