When connecting to my Supabase-hosted Supavisor using any client and executing a query that returns a sufficiently large amount of data (order of a gigabyte), Supavisor closes the connection during execution. I identified this with a real query we were running on our backend, but it's easy to reproduce with any old query, e.g. select generate_series(1, 100000000).
It fails reliably every time after about the same time limit. Other long-running queries work OK. It works fine when connecting to the instance directly, and was working fine with pgbouncer.
Bug report
Describe the bug
When connecting to my Supabase-hosted Supavisor using any client and executing a query that returns a sufficiently large amount of data (order of a gigabyte), Supavisor closes the connection during execution. I identified this with a real query we were running on our backend, but it's easy to reproduce with any old query, e.g.
select generate_series(1, 100000000)
.It fails reliably every time after about the same time limit. Other long-running queries work OK. It works fine when connecting to the instance directly, and was working fine with pgbouncer.
To Reproduce
Additional context
Supabase project ID: pxidrgkatumlvfqaxcll Postgres version: 15.1