This repository has been archived by the owner on Mar 30, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this change the entire result set of a SQL query (or multiple, depending on how many were sent in a single string) were buffered into memory before they were sent to the client. This is fine for small result sets but for queries with larger result sets the memory consumption was less than ideal -- in extreme cases the query would exceed its memory budget making the query not able to be run at all. This change adds support for streaming results over pgwire to a client. Given a SQL string the server will buffer the result set in 16KB chunks -- unless we encounter an error, which will then be immediately sent to the client. Closes: #7775.
- Loading branch information