Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id B934DDDBC27 for ; Fri, 2 Dec 2011 07:06:58 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWQxC-0001sl-DX for pgsql-bugs@postgresql.org; Fri, 02 Dec 2011 11:06:59 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWQwz-0006t9-Bk for pgsql-bugs@postgresql.org; Fri, 02 Dec 2011 11:06:42 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RWQwz-0005Ug-06 for pgsql-bugs@postgresql.org; Fri, 02 Dec 2011 11:06:41 +0000 Date: Fri, 02 Dec 2011 11:06:41 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6318: pg_dump for non-template languages is broken To: pgsql-bugs@postgresql.org From: laurenz.albe@wien.gv.at X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/22 X-Sequence-Number: 31833 The following bug has been logged on the website: Bug reference: 6318 Logged by: Laurenz Albe Email address: laurenz.albe@wien.gv.at PostgreSQL version: 9.1.1 Operating system: Linux (RHEL 3) Description: = How to reproduce: postgres=3D# CREATE DATABASE dumpme; postgres=3D# \c dumpme postgres dumpme=3D# CREATE LANGUAGE mylang HANDLER plpgsql_call_handler INLINE plpgsql_inline_handler VALIDATOR plpgsql_validator; dumpme=3D# \q $ pg_dump -C -F p -f dumpme.sql dumpme $ psql -c 'DROP DATABASE dumpme' $ psql -f dumpme.sql [...] psql:dumpme.sql:32: ERROR: unsupported language "mylang" HINT: The supported languages are listed in the pg_pltemplate system catalog. psql:dumpme.sql:35: ERROR: language "mylang" does not exist [...] The reason is that the dump contains: -- -- Name: mylang; Type: PROCEDURAL LANGUAGE; Schema: -; Owner: advpg -- CREATE OR REPLACE PROCEDURAL LANGUAGE mylang; ALTER PROCEDURAL LANGUAGE mylang OWNER TO advpg; Yours, Laurenz Albe