Re: [BUGS] Patch to allow C extension modules to initialize/finish

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: rse(at)engelschall(dot)com
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: [BUGS] Patch to allow C extension modules to initialize/finish
Date: 2006-08-08 19:18:18
Message-ID: 12373.1155064698@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-hackers

"Ralf S. Engelschall" <rse(at)engelschall(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Ralf S. Engelschall 2006-08-08 19:32:43 Re: [BUGS] Patch to allow C extension modules to initialize/finish
Previous Message Jim Nasby 2006-08-08 17:35:19 Re: Fwd: Strange behaviour of RULE (selecting last inserted ID of 'sequenced' column)

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2006-08-08 19:21:57 Re: buildfarm - make check failures for leveret on 8.0
Previous Message Andrew Dunstan 2006-08-08 19:15:45 Re: pgsql: Add detail on packages: > > A package would be a