supabase / postgres-meta

A RESTful API for managing your Postgres. Fetch tables, add roles, and run queries
https://supabase.com
Apache License 2.0
856 stars 112 forks source link

fix: query timeout #768

Closed soedirgo closed 2 months ago

soedirgo commented 2 months ago

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Testing locally, select pg_sleep(<forever>) just hangs even past the connectionTimeoutMillis

What is the new behavior?

Use query_timeout instead which returns Query read timeout with a 400