Re: postgres_fdw and connection management

Поиск
Список
Период
Сортировка
От Robert Haas
Тема Re: postgres_fdw and connection management
Дата
Msg-id CA+TgmoZFto0QzqzqJyy7HFoyGhUhRBW0YJ5vtjOvhWneJzFeHA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: postgres_fdw and connection management  (Shigeru Hanada <shigeru.hanada@gmail.com>)
Список pgsql-hackers
On Mon, May 26, 2014 at 10:47 PM, Shigeru Hanada
<shigeru.hanada@gmail.com> wrote:
> 2014-05-24 0:09 GMT+09:00 Sandro Santilli <strk@keybit.net>:
>> 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-specific configuration.
>
> Connection management seems FDW-specific feature to me.  How about to
> add FDW option, say pool_connection=true|false, to postgres_fdw which
> allows per-server configuration?

Right... or you could have an option to close the connection at
end-of-statement, end-of-transaction, or end-of-session.  But quite
apart from that, it seems like there ought to be a way to tell an FDW
to flush its state.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Robert Haas
Дата:
Сообщение: Re: Spreading full-page writes
Следующее
От: Amit Kapila
Дата:
Сообщение: Re: pg_sleep() doesn't work well with recovery conflict interrupts.