pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: laurenz.albe@wien.gv.at
To: pgsql-bugs@postgresql.org
Subject: BUG #6318: pg_dump for non-template languages is broken
Date: Fri, 02 Dec 2011 11:06:41 +0000
Message-ID: <E1RWQwz-0005Ug-06@wrigleys.postgresql.org> (raw)

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=# CREATE DATABASE dumpme;
postgres=# \c dumpme postgres
dumpme=# CREATE LANGUAGE mylang HANDLER plpgsql_call_handler INLINE
plpgsql_inline_handler VALIDATOR plpgsql_validator;
dumpme=# \q

$ pg_dump -C -F p -f dumpme.sql dumpme

$ psql -c &#39;DROP DATABASE dumpme&#39;

$ psql -f dumpme.sql
[...]
psql:dumpme.sql:32: ERROR:  unsupported language &quot;mylang&quot;
HINT:  The supported languages are listed in the pg_pltemplate system
catalog.
psql:dumpme.sql:35: ERROR:  language &quot;mylang&quot; 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




view thread (3+ messages)  latest in thread

Message-ID: <E1RWQwz-0005Ug-06@wrigleys.postgresql.org>
Permalink:  ../E1RWQwz-0005Ug-06@wrigleys.postgresql.org/
Also on:    postgresql.org/message-id/E1RWQwz-0005Ug-06@wrigleys.postgresql.org

 · 

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-bugs@postgresql.org
  Cc: laurenz.albe@wien.gv.at
  Subject: Re: BUG #6318: pg_dump for non-template languages is broken
  In-Reply-To: <E1RWQwz-0005Ug-06@wrigleys.postgresql.org>
  References: <E1RWQwz-0005Ug-06@wrigleys.postgresql.org>

* 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