Re: [HACKERS] postgres_fdw and connection management

2014-05-29 Thread Robert Haas
On Mon, May 26, 2014 at 10:47 PM, Shigeru Hanada wrote: > 2014-05-24 0:09 GMT+09:00 Sandro Santilli : >> Indeed I tried "DISCARD ALL" in hope it would have helped, so I find >> good your idea of allowing extensions to register an hook there. >> >> Still, I'd like the FDW handler itself to possibly

Re: [HACKERS] postgres_fdw and connection management

2014-05-27 Thread Sandro Santilli
On Tue, May 27, 2014 at 12:32:50AM -0300, Fabrízio de Royes Mello wrote: > On Mon, May 26, 2014 at 11:47 PM, Shigeru Hanada > wrote: > > > > 2014-05-24 0:09 GMT+09:00 Sandro Santilli : > > > Indeed I tried "DISCARD ALL" in hope it would have helped, so I find > > > good your idea of allowing exten

Re: [HACKERS] postgres_fdw and connection management

2014-05-26 Thread Fabrízio de Royes Mello
On Mon, May 26, 2014 at 11:47 PM, Shigeru Hanada wrote: > > 2014-05-24 0:09 GMT+09:00 Sandro Santilli : > > Indeed I tried "DISCARD ALL" in hope it would have helped, so I find > > good your idea of allowing extensions to register an hook there. > > > > Still, I'd like the FDW handler itself to po

Re: [HACKERS] postgres_fdw and connection management

2014-05-26 Thread Shigeru Hanada
2014-05-24 0:09 GMT+09:00 Sandro Santilli : > Indeed I tried "DISCARD ALL" in hope it would have helped, so I find > good your idea of allowing extensions to register an hook there. > > Still, I'd like the FDW handler itself to possibly be configured > to disable the pool completely as a server-spe

Re: [HACKERS] postgres_fdw and connection management

2014-05-23 Thread Sandro Santilli
On Fri, May 23, 2014 at 11:13:50AM -0300, Fabrízio de Royes Mello wrote: > On Fri, May 23, 2014 at 8:09 AM, Sandro Santilli wrote: > > > > I'm evaluating use of the postgres FDW to keep in sync a central database > > to changes made in thousand other databases, via triggers. > > > > But as long as

Re: [HACKERS] postgres_fdw and connection management

2014-05-23 Thread Fabrízio de Royes Mello
On Fri, May 23, 2014 at 8:09 AM, Sandro Santilli wrote: > > I'm evaluating use of the postgres FDW to keep in sync a central database > to changes made in thousand other databases, via triggers. > > But as long as postgres_fdw keeps connections open for the whole lifetime > of a session this confl

[HACKERS] postgres_fdw and connection management

2014-05-23 Thread Sandro Santilli
I'm evaluating use of the postgres FDW to keep in sync a central database to changes made in thousand other databases, via triggers. But as long as postgres_fdw keeps connections open for the whole lifetime of a session this conflicts with large use of poolers which make sessions virtually never e