Re: NOT EXIST for PREPARE - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: NOT EXIST for PREPARE
Date
Msg-id 56F46B0A.6060309@proxel.se
Whole thread Raw
In response to Re: NOT EXIST for PREPARE  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-hackers
On 03/24/2016 11:21 PM, Merlin Moncure wrote:
>> Personally I think the right solution would be to add support for prepared
>> statements in pgbouncer, and have pgbouncer run PREPARE as necessary, either
>> after opening a new connection to the database or at the first use of a
>> given prepared statement in a connection.
>
> maybe so. A while back I was running a hacked pgbouncer that had
> support for async notifications (i still have the code around
> somewhere).  It can be done -- however this not a complete solution;
> both LISTEN and PREPARE are possible from within server-side
> functions.

Yes, it is not a complete solution, but it solves the problems of many 
users. I think even just supporting the protocol level prepare and 
execute commands would be enough for many of those who have problems 
with pgbouncer.

Andreas



pgsql-hackers by date:

Previous
From: Merlin Moncure
Date:
Subject: Re: NOT EXIST for PREPARE
Next
From: Peter Geoghegan
Date:
Subject: Re: Using quicksort for every external sort run