Re: How to manage shared library lifetime through C functions - Mailing list pgsql-hackers

From Craig Ringer
Subject Re: How to manage shared library lifetime through C functions
Date
Msg-id 53DF9647.3000107@2ndquadrant.com
Whole thread Raw
In response to Re: How to manage shared library lifetime through C functions  (Albe Laurenz <laurenz.albe@wien.gv.at>)
List 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 by date:

Previous
From: Albe Laurenz
Date:
Subject: Re: How to manage shared library lifetime through C functions
Next
From: Heikki Linnakangas
Date:
Subject: SSL regression test suite