From: sergi.casbas@iris.cat
To: pgsql-bugs@postgresql.org
Subject: BUG #13444: psql can't recover a pg_dump.
Date: Mon, 15 Jun 2015 10:55:17 +0000
Message-ID: <20150615105517.2730.47745@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 13444
Logged by: Sergi Casbas
Email address: sergi.casbas@iris.cat
PostgreSQL version: 9.4.4
Operating system: Debian 8
Description:
When I try to recover a dump made with pg_dump, psql can't recovery some
materialized views because the views use a function that is not created yet
in the dump sql.
Example:
SET check_function_bodies = false;
SET client_min_messages = warning;
SET default_tablespace = '';
SET search_path = public, pg_catalog;
CREATE MATERIALIZED VIEW testmview AS
SELECT publicz.testfunc() AS testfunc
WITH NO DATA;
CREATE SCHEMA publicz;
SET search_path = publicz, pg_catalog;
CREATE FUNCTION testfunc() RETURNS integer
LANGUAGE sql
AS $$SELECT 1;$$;
If we swap the order between public an publicz creation it works.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: sergi.casbas@iris.cat
Subject: Re: BUG #13444: psql can't recover a pg_dump.
In-Reply-To: <20150615105517.2730.47745@wrigleys.postgresql.org>
References: <20150615105517.2730.47745@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