Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id D649A4762B8 for ; Tue, 10 Dec 2002 00:02:53 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 6864D476197 for ; Tue, 10 Dec 2002 00:02:46 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id gBA52Apd022957; Tue, 10 Dec 2002 00:02:11 -0500 (EST) To: Brian Fujito Cc: pgsql-admin@postgresql.org 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> Comments: In-reply-to Brian Fujito message dated "09 Dec 2002 23:05:22 -0500" Date: Tue, 10 Dec 2002 00:02:10 -0500 Message-ID: <22956.1039496530@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200212/111 X-Sequence-Number: 6606 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?