pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dan Langille <dan@langille.org>
To: Brian Fujito <brian@lightsource.com>
Cc: pgsql-admin@postgresql.org, Tom Lane <tgl@sss.pgh.pa.us>
Subject: Re: "dumpProcLangs(): handler procedure for language
Date: Tue, 10 Dec 2002 00:26:12 -0500
Message-ID: <3DF534A4.18280.1DD59511@localhost> (raw)
In-Reply-To: <22956.1039496530@sss.pgh.pa.us>
References: <1039493122.1378.105.camel@brian.lightsource.com>

On 10 Dec 2002 at 0:02, Tom Lane wrote:

> Brian Fujito <brian@lightsource.com> writes:
> >> What exactly are you doing to drop and re-add the language?  I
> >> should think CREATE LANGUAGE would fail if the handler proc isn't
> >> there.
> 
> > I've tried both ways:
> 
> > createlang/droplang from the command line as user postgres
> 
> > and:
> 
> > CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS
> >         '/usr/lib/pgsql/plpgsql.so' LANGUAGE 'C';
> 
> > CREATE TRUSTED PROCEDURAL LANGUAGE 'plpgsql'
> >         HANDLER plpgsql_call_handler
> >           LANCOMPILER 'PL/pgSQL';
> 
> Hrmph.  Looks perfectly standard from here; I don't see why pg_dump is
> failing to find the handler.  It would help to see what the
> server-side view of the transaction is like.  Would you run pg_dump
> after setting query logging on (from memory, I think export
> PGOPTIONS="-d2" will work in 7.0, but too tired to check it) and then
> show us the tail end of the postmaster log after pg_dump fails?
> 
>    regards, tom lane
> 
> PS: a wild-*ss guess: 7.0 wasn't too clean in handling OIDs above 2
> billion; is it possible your pg_language OID for plpgsql is over 2G?

Followed by another wild guess.  Could the path be the problem?  
Looking at my notes (http://www.freebsddiary.org/postgresql-
pgsql.php) I see that at one time I supplied a pathname :

CREATE FUNCTION plpgsql_call_handler () RETURNS OPAQUE AS
'/usr/local/pgsql/lib/plpgsql.so' LANGUAGE 'C'; 

Please let us know.
-- 
Dan Langille : http://www.langille.org/




view thread (9+ messages)  latest in thread

Message-ID: <3DF534A4.18280.1DD59511@localhost>
Permalink:  ../3DF534A4.18280.1DD59511@localhost/
Also on:    postgresql.org/message-id/3DF534A4.18280.1DD59511@localhost

 · 

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: dan@langille.org, brian@lightsource.com, tgl@sss.pgh.pa.us
  Subject: Re: "dumpProcLangs(): handler procedure for language
  In-Reply-To: <3DF534A4.18280.1DD59511@localhost>
  References: <1039493122.1378.105.camel@brian.lightsource.com> <3DF534A4.18280.1DD59511@localhost>

* 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