Re: [BUGS] Patch to allow C extension modules to initialize/finish - Mailing list pgsql-hackers

From Tom Lane
Subject Re: [BUGS] Patch to allow C extension modules to initialize/finish
Date
Msg-id 12373.1155064698@sss.pgh.pa.us
Whole thread Raw
In response to Patch to allow C extension modules to initialize/finish  ("Ralf S. Engelschall" <rse@engelschall.com>)
Responses Re: [BUGS] Patch to allow C extension modules to initialize/finish
List pgsql-hackers
"Ralf S. Engelschall" <rse@engelschall.com> writes:
> Hence I propose the patch below (applies to PostgreSQL 8.1.4) which
> mimics the dlopen(3) and dlclose(3) behaviour of some Unix platforms
> and resolves and calls _PG_init and _PG_fini functions of an extension
> module right after/before the pg_dlopen/pg_dlclose calls in the FMGR.

Patch applied, with consequent changes to simplify preload_libraries
feature in favor of using _PG_init().
        regards, tom lane


pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: pgsql: Add detail on packages: > > A package would be a
Next
From: Andrew Dunstan
Date:
Subject: Re: buildfarm - make check failures for leveret on 8.0