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 9888.1238648730@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>)
List pgsql-hackers
Pavel Stehule <pavel.stehule@gmail.com> writes:
> Maybe an safe minimum is cleaning symbols table without closing
> library. Then the code from lib will be accessible, but functionality
> will be disabled (for Postgres)?

If the library doesn't get added to the list in dfmgr.c, we'll never
look for symbols within it anyway.  So I don't think there's any
particular cleaning to be done --- even assuming that the platform
supports removing symbols without dlclose'ing the library, which
seems rather unlikely.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: "failed to commit client_encoding" explained
Next
From: Tom Lane
Date:
Subject: Re: protect dll lib initialisation against any exception, for 8.5