Re: loading libraries on Postmaster startup

From: Darko Prenosil <darko(dot)prenosil(at)finteh(dot)hr>
To: Joe Conway <mail(at)joeconway(dot)com>, Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: "Hackers (PostgreSQL)" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: loading libraries on Postmaster startup
Date: 2003-05-28 17:19:25
Message-ID: 200305281919.25088.darko.prenosil@finteh.hr
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-patches

On Thursday 13 February 2003 22:24, Joe Conway wrote:
> Peter Eisentraut wrote:
> > Joe Conway writes:
> >>So I wrote a quick hack to load and initialize the library on postmaster
> >>startup.
> >
> > On glibc systems you can probably do this using the environment variable
> > LD_PRELOAD. I guess others have a similar mechanism.
>
> Hmmm. I could try that. But I found during testing that the loading was
> actually not the slow part, it was running the initialization function
> for the interpreter that was. I wonder if there is there any way to get
> an initialization function to automatically execute?
>

Joe, did You got the answer to this question ?
I would like to acomplish something like this:
execute some stored procedure on backend(not postmaster) start and exit.
So, it is not the same reason, but it is still the same question.

Regards !

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Srikanth M 2003-05-28 17:21:07 DATA-CUBE in Postgresql.
Previous Message Alvaro Herrera Munoz 2003-05-28 14:25:25 Re: Help needed in testing my code.

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-05-28 18:36:45 Re: [PATCHES] Sequence usage patch
Previous Message Fernando Nasser 2003-05-28 15:04:04 JDBC: Reinstate autocommit client hack for 7.4