From: Tom Lane <tgl@sss.pgh.pa.us>
To: laurenz.albe@wien.gv.at
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #6318: pg_dump for non-template languages is broken
Date: Fri, 02 Dec 2011 12:28:11 -0500
Message-ID: <19869.1322846891@sss.pgh.pa.us> (raw)
In-Reply-To: <E1RWQwz-0005Ug-06@wrigleys.postgresql.org>
References: <E1RWQwz-0005Ug-06@wrigleys.postgresql.org>
laurenz.albe@wien.gv.at writes:
> dumpme=# CREATE LANGUAGE mylang HANDLER plpgsql_call_handler INLINE
> plpgsql_inline_handler VALIDATOR plpgsql_validator;
I don't think this is a particularly interesting use-case. The reason
it doesn't work for you is that it's depending on support functions
that are in pg_catalog, and as the comment in pg_dump.c says:
/*
* Try to find the support function(s). It is not an error if we don't
* find them --- if the functions are in the pg_catalog schema, as is
* standard in 8.1 and up, then we won't have loaded them. (In this case
* we will emit a parameterless CREATE LANGUAGE command, which will
* require PL template knowledge in the backend to reload.)
*/
An actual add-on procedural language would not fall foul of this.
regards, tom lane
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: tgl@sss.pgh.pa.us, laurenz.albe@wien.gv.at
Subject: Re: BUG #6318: pg_dump for non-template languages is broken
In-Reply-To: <19869.1322846891@sss.pgh.pa.us>
References: <E1RWQwz-0005Ug-06@wrigleys.postgresql.org> <19869.1322846891@sss.pgh.pa.us>
* 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