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

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

On Tue, Aug 08, 2006, Tom Lane wrote:

> "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().

Thanks.
Ralf S. Engelschall
rse(at)engelschall(dot)com
www.engelschall.com

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-08-09 02:03:21 Re: BUG #2565: pg tool doesn't detect window size changes
Previous Message Tom Lane 2006-08-08 19:18:18 Re: [BUGS] Patch to allow C extension modules to initialize/finish

Browse pgsql-hackers by date

  From Date Subject
Next Message Stefan Kaltenbrunner 2006-08-08 19:33:03 Re: buildfarm - make check failures for leveret on 8.0
Previous Message Andrew Dunstan 2006-08-08 19:21:57 Re: buildfarm - make check failures for leveret on 8.0