Re: protect dll lib initialisation against any exception, for 8.5

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com>
Cc: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: protect dll lib initialisation against any exception, for 8.5
Date: 2009-04-02 02:58:24
Message-ID: 6002.1238641104@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> writes:
> 2009/4/2 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)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

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tao Ma 2009-04-02 03:13:52 Re: question about deparsing const node and its typmod
Previous Message Pavel Stehule 2009-04-02 02:46:34 Re: protect dll lib initialisation against any exception, for 8.5