Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 78FF2475FB9 for ; Tue, 10 Dec 2002 01:25:28 -0500 (EST) Received: from mail.lifeaudio.com (pcp733771pcs.arlngt01.va.comcast.net [68.49.167.130]) by postgresql.org (Postfix) with ESMTP id 343C547659A for ; Tue, 10 Dec 2002 01:25:04 -0500 (EST) Received: from brian.lightsource.com (brian.lightsource.com [127.0.0.1]) by mail.lifeaudio.com (8.11.6/8.11.6) with ESMTP id gBA6Otu11540; Tue, 10 Dec 2002 01:24:56 -0500 Subject: Re: "dumpProcLangs(): handler procedure for language From: Brian Fujito To: Dan Langille Cc: pgsql-admin@postgresql.org, Tom Lane In-Reply-To: <3DF534A4.18280.1DD59511@localhost> References: <1039493122.1378.105.camel@brian.lightsource.com> <3DF534A4.18280.1DD59511@localhost> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 Date: 10 Dec 2002 01:24:55 -0500 Message-Id: <1039501496.3655.116.camel@brian.lightsource.com> Mime-Version: 1.0 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/114 X-Sequence-Number: 6609 Nope- checked the filename. The libs match up. Thanks for your help, though--I appreciate it. Please see my reply to Tom regarding OID's... any insight on how to fix that? thank you all, brian On Tue, 2002-12-10 at 00:26, Dan Langille wrote: > On 10 Dec 2002 at 0:02, Tom Lane wrote: > > > Brian Fujito 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/ > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: if posting/reading through Usenet, please send an appropriate > subscribe-nomail command to majordomo@postgresql.org so that your > message can get through to the mailing list cleanly -- Brian T. Fujito Chief Technical Officer www.christianity.com www.lightsource.com www.online-giving.com brian@lightsource.com (703) 548-8900