pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Brian Fujito <brian@lightsource.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-admin@postgresql.org
Subject: Re: "dumpProcLangs(): handler procedure for language
Date: 09 Dec 2002 23:05:22 -0500
Message-ID: <1039493122.1378.105.camel@brian.lightsource.com> (raw)
In-Reply-To: <16098.1039462082@sss.pgh.pa.us>
References: <1039455934.1378.58.camel@brian.lightsource.com>
	<16098.1039462082@sss.pgh.pa.us>

Thanks for your input--

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';
       
I'm using pg_dump (not pg_dumpall) on the specific database on which
I created the language.

I realize 7.0.3 is ancient (same with 7.1)... I just don't have the
time to deal with an upgrade quite yet.  Soon enough :)  In the mean
time, a stop-gap solution would definitely be appreciated.

Thank you,
Brian


On Mon, 2002-12-09 at 14:28, Tom Lane wrote:
> Brian Fujito <brian@lightsource.com> writes:
> > I'm running postgres-7.0.3 on RH7.1 using RedHat RPMs.
> > I recently added plpgsql as a language to one of my databases, 
> > and now when I try to do a pg_dump, I get:
> 
> > "dumpProcLangs(): handler procedure for language plpgsql not found"
> 
> > If I drop the language, pg_dump works fine, but if I add it back (and
> > even if I restart postgres), I get the same error.
> 
> 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.
> 
> (Also, are you doing pg_dump or pg_dumpall?  If the latter, maybe the
> failure is occurring in a different database than the one you are
> changing.)
> 
> But having said that, 7.0.3 is ancient history ... you really are
> overdue for an upgrade.  With my Red Hat fedora on, I'd say the same
> about your choice of OS version too.
> 
> 			regards, tom lane





view thread (9+ messages)  latest in thread

Message-ID: <1039493122.1378.105.camel@brian.lightsource.com>
Permalink:  ../1039493122.1378.105.camel@brian.lightsource.com/
Also on:    postgresql.org/message-id/1039493122.1378.105.camel@brian.lightsource.com

 · 

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: brian@lightsource.com, tgl@sss.pgh.pa.us
  Subject: Re: "dumpProcLangs(): handler procedure for language
  In-Reply-To: <1039493122.1378.105.camel@brian.lightsource.com>
  References: <1039455934.1378.58.camel@brian.lightsource.com> <16098.1039462082@sss.pgh.pa.us> <1039493122.1378.105.camel@brian.lightsource.com>

* 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