Re: How to manage shared library lifetime through C functions

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: How to manage shared library lifetime through C functions
Дата
Msg-id 53DF9647.3000107@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: How to manage shared library lifetime through C functions  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Список pgsql-hackers
On 08/04/2014 09:48 PM, Albe Laurenz wrote:
> There are valid use cases (else the function probably wouldn't exist).
> I use it in oracle_fdw to gracefully close any open Oracle connections when
> the process exits.

True; it's sometimes better to do a clean exit.

It's relying on that always happening that's a problem. In your case
Oracle will clean up dead connections after a while, for example (or
quite promptly as the OS will rapidly TCP RST them). So it's just nicer.

Point taken though.


-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Albe Laurenz
Дата:
Сообщение: Re: How to manage shared library lifetime through C functions
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: SSL regression test suite