Re: [HACKERS] Proposal for better PQExpBuffer out-of-memory behavior

2008-11-26 Thread Sam Mason
On Tue, Nov 25, 2008 at 10:33:05AM -0500, Tom Lane wrote: > I've been chewing on the problem described here: > http://archives.postgresql.org/pgsql-general/2008-11/msg01220.php > > It's not particularly easy to fix without making annoyingly large > changes to the API for PQExpBuffer. Yup, I've ju

[HACKERS] Proposal for better PQExpBuffer out-of-memory behavior

2008-11-25 Thread Tom Lane
I've been chewing on the problem described here: http://archives.postgresql.org/pgsql-general/2008-11/msg01220.php It's not particularly easy to fix without making annoyingly large changes to the API for PQExpBuffer. The best idea I have come up with so far goes like this: * Upon failure to mall