Re: protect dll lib initialisation against any exception, for 8.5 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: protect dll lib initialisation against any exception, for 8.5
Date
Msg-id 6002.1238641104@sss.pgh.pa.us
Whole thread Raw
In response to Re: protect dll lib initialisation against any exception, for 8.5  (Pavel Stehule <pavel.stehule@gmail.com>)
Responses Re: protect dll lib initialisation against any exception, for 8.5  (Greg Stark <greg.stark@enterprisedb.com>)
Re: protect dll lib initialisation against any exception, for 8.5  (Pavel Stehule <pavel.stehule@gmail.com>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> 2009/4/2 Tom Lane <tgl@sss.pgh.pa.us>:
>> So I'm thinking this is really unnecessary and we should leave well
>> enough alone.

> I see it. I thing , an safety of this exception should be solved only
> by programmer. It's important to release all hooks, and then raise an
> exception. It is in developer responsibility.

Well, if the init function is sufficiently carefully coded to back out
just the changes it's managed to apply, then good for it.  But we still
aren't losing much by leaving dfmgr as-is.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Pavel Stehule
Date:
Subject: Re: protect dll lib initialisation against any exception, for 8.5
Next
From: "maosen.zhang"
Date:
Subject: hstore bug and repair method