From: | "Dan Langille" <dan(at)langille(dot)org> |
---|---|
To: | Brian Fujito <brian(at)lightsource(dot)com> |
Cc: | pgsql-admin(at)postgresql(dot)org, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Subject: | Re: "dumpProcLangs(): handler procedure for language |
Date: | 2002-12-10 05:26:12 |
Message-ID: | 3DF534A4.18280.1DD59511@localhost |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On 10 Dec 2002 at 0:02, Tom Lane wrote:
> Brian Fujito <brian(at)lightsource(dot)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/
From | Date | Subject | |
---|---|---|---|
Next Message | Brian Fujito | 2002-12-10 06:23:01 | Re: "dumpProcLangs(): handler procedure for language |
Previous Message | Tom Lane | 2002-12-10 05:02:10 | Re: "dumpProcLangs(): handler procedure for language |