pl/perl interpreter instance(s) - how long does it persist?

From: Toby Corkindale <toby(dot)corkindale(at)strategicdata(dot)com(dot)au>
To: pgsql-general(at)postgresql(dot)org
Subject: pl/perl interpreter instance(s) - how long does it persist?
Date: 2010-12-09 01:54:46
Message-ID: 4D0036E6.4020504@strategicdata.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,
Apologies in advance if this has been covered before, but I've searched
extensively without finding anything so far.

I would like to know how long the pl/perl interpreter instances persist?

I ask because I'm doing some work where we have PL/Perlu code that loads
some Perl modules in trigger code. If I change the underlying modules
that have been loaded, then when can I expect the new version to take
effect?

Initial testing seems to give me contrary results.
In some cases, creating a new DB then loading the same module in a new
stored procedure will get the old version.
But in some other cases, the new DB will pick up the new version of the
module.

I wondered if this might be due to the backend having a number of perl
interpreters in different processes, and I'm getting a fresh process
sometimes, and sometimes I'm getting an old one that's already loaded
the modules.

So.. I'm a bit confused and hoped I could come and ask for advice.

Thanks,
Toby

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Toby Corkindale 2010-12-09 02:00:55 pl/perl object destruction (or lack thereof) at session end
Previous Message Guillaume Lelarge 2010-12-08 22:46:43 Re: Set new owner on cloned database