pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sean Chittenden <sean@chittenden.org>
Cc: Dan Langille <dan@langille.org>
Cc: pgsql-admin@postgresql.org
Subject: Re: 7.1->7.2 data import timestamp problems
Date: Sat, 23 Feb 2002 16:06:06 -0500
Message-ID: <26783.1014498366@sss.pgh.pa.us> (raw)
In-Reply-To: <20020223121846.I62359@ninja1.internal>
References: <200202231944.g1NJiEk43626@lists.unixathome.org>
	<25996.1014493835@sss.pgh.pa.us>
	<200202232014.g1NKEuk43959@lists.unixathome.org>
	<20020223121846.I62359@ninja1.internal>

>> [1] - the change I made: this
>> 
>> CREATE FUNCTION "plpgsql_call_handler" () RETURNS opaque AS
>> '/usr/local/lib/plpgsql.so', 'plpgsql_call_handler' LANGUAGE 'C';
>> 
>> became
>> 
>> CREATE FUNCTION "plpgsql_call_handler" () RETURNS opaque AS
>> '/usr/local/lib/postgresql/plpgsql.so', 'plpgsql_call_handler'
>> LANGUAGE 'C';
>> 
>> which is the default location under the latest FreeBSD port.

> I've run into this a few times and have talked with the maintainer and
> think that a note regarding this change may come in future versions of
> the pgsql port.

Actually, under 7.2 the preferred definition is just

CREATE FUNCTION "plpgsql_call_handler" () RETURNS opaque AS
'plpgsql', 'plpgsql_call_handler' LANGUAGE 'C';

It's no longer necessary to supply a full path to the shlib, and
in fact it's best to let the shlib loader fill in the default path.
That should prevent future occurrences of this sort of problem.
Almost certainly, the reason you got burnt to begin with was that
the dumped definition of plpgsql_call_handler contained the full
path to the *old* installation's plpgsql.so --- am I not right?
We got smart about that at last, and now there is a search path
for shlibs in the loader code.  But it won't help you unless you
use it.

> Are there any plans to merge in the Heimdal kerberos patches?  -sc

Peter said he committed it yesterday...

			regards, tom lane



view thread (16+ messages)  latest in thread

Message-ID: <26783.1014498366@sss.pgh.pa.us>
Permalink:  ../26783.1014498366@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/26783.1014498366@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, sean@chittenden.org, dan@langille.org
  Subject: Re: 7.1->7.2 data import timestamp problems
  In-Reply-To: <26783.1014498366@sss.pgh.pa.us>
  References: <200202231944.g1NJiEk43626@lists.unixathome.org> <25996.1014493835@sss.pgh.pa.us> <200202232014.g1NKEuk43959@lists.unixathome.org> <20020223121846.I62359@ninja1.internal> <26783.1014498366@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox