From: Tom Lane <tgl@sss.pgh.pa.us>
To: jesse.denardo@myfarms.com
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #9616: Materialized view with indexes unable to load from pg_dump
Date: Tue, 18 Mar 2014 10:58:47 -0400
Message-ID: <9030.1395154727@sss.pgh.pa.us> (raw)
In-Reply-To: <20140318075427.20722.65161@wrigleys.postgresql.org>
References: <20140318075427.20722.65161@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
jesse.denardo@myfarms.com writes:
> I have created several materialized views on one database. To copy data to a
> new database, I dump the schema(s) of choice using pg_dump and pipe the
> result to psql. The exact command looks like:
> $ pg_dump -b -n <schema> -O -x -h localhost -U <user> <db> | psql -h <other
> host> -d <other db> -U <other user>
> The materialized views get copied and restored just fine with one exception:
> The one mat view that has indexes. Here is the result of \d on this mat
> view:
I can't reproduce this here; it seems clear that there's some triggering
condition other than the mere presence of indexes. Could you submit a
*self contained* example (preferably, a SQL script that makes a database
that pg_dump misbehaves on)?
The output looks a little bit like pg_dump might be trying to break some
circular dependency involving the matview. But it's not obvious how
you'd have gotten into such a situation, and we certainly haven't been
shown all the moving parts.
regards, tom lane
--
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: tgl@sss.pgh.pa.us, jesse.denardo@myfarms.com
Subject: Re: BUG #9616: Materialized view with indexes unable to load from pg_dump
In-Reply-To: <9030.1395154727@sss.pgh.pa.us>
References: <20140318075427.20722.65161@wrigleys.postgresql.org> <9030.1395154727@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