pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Marko Tiikkaja <marko@joh.to>
Cc: Jeff Janes <jeff.janes@gmail.com>
Cc: Sergi Casbas <sergi.casbas@iris.cat>
Cc: Pg Bugs <pgsql-bugs@postgresql.org>
Subject: Re: BUG #13444: psql can't recover a pg_dump.
Date: Tue, 16 Jun 2015 18:08:20 -0400
Message-ID: <1817.1434492500@sss.pgh.pa.us> (raw)
In-Reply-To: <558094E7.9070606@joh.to>
References: <20150615105517.2730.47745@wrigleys.postgresql.org>
	<CAMkU=1xvW3WbdNqReDtk--TksVZO8ZidCnr2cCdnD2RVJJCBTQ@mail.gmail.com>
	<CA+Q_62Z9T+MeH2BX_k6=MiT8evx1LQa6XFjWN5yXTT3-C+uQQQ@mail.gmail.com>
	<CAMkU=1znatVLsyNb9nMJXNqj3yR-sQ3sXksbfPK_27Ka+5KEOw@mail.gmail.com>
	<558094E7.9070606@joh.to>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Marko Tiikkaja <marko@joh.to> writes:
> This sounds like it might be a duplicate of bug #12465: 
> http://www.postgresql.org/message-id/20150108212429.11502.18220@wrigleys.postgresql.org

It's hard to tell on the basis of the supplied info what exactly is the
OP's specific problem.  However, although I rejected #12465 as not-a-bug,
there definitely are issues with functions in materialized views, because
pg_dump lacks enough information to understand what dependencies might be
implied by the bodies of the functions.  We've also seen reports of cases
where it nominally worked, but took forever, because execution of the
matview queries was too slow for lack of not-yet-restored indexes or for
lack of planner statistics.

A simple response would be to delay all the REFRESH MATVIEW commands to
the end of the dump script, but (1) that doesn't fix the lack-of-ANALYZE
problem, and (2) it plays hob with the notion of pre-data/data/post-data
section boundaries, unless you're willing to reclassify the REFRESH
commands as not being "data".

			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



view thread (7+ messages)  latest in thread

Message-ID: <1817.1434492500@sss.pgh.pa.us>
Permalink:  ../1817.1434492500@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/1817.1434492500@sss.pgh.pa.us

 · 

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: tgl@sss.pgh.pa.us, marko@joh.to, jeff.janes@gmail.com, sergi.casbas@iris.cat
  Subject: Re: BUG #13444: psql can't recover a pg_dump.
  In-Reply-To: <1817.1434492500@sss.pgh.pa.us>
  References: <20150615105517.2730.47745@wrigleys.postgresql.org> <CAMkU=1xvW3WbdNqReDtk--TksVZO8ZidCnr2cCdnD2RVJJCBTQ@mail.gmail.com> <CA+Q_62Z9T+MeH2BX_k6=MiT8evx1LQa6XFjWN5yXTT3-C+uQQQ@mail.gmail.com> <CAMkU=1znatVLsyNb9nMJXNqj3yR-sQ3sXksbfPK_27Ka+5KEOw@mail.gmail.com> <558094E7.9070606@joh.to> <1817.1434492500@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