pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Andres Freund <andres@2ndquadrant.com>
Cc: lalbin@fhcrc.org
Cc: pgsql-bugs@postgresql.org
Subject: Re: BUG #8257: Multi-Core Restore fails when containing index comments
Date: Thu, 27 Jun 2013 10:29:14 -0400
Message-ID: <20760.1372343354@sss.pgh.pa.us> (raw)
In-Reply-To: <20130627080135.GA12870@awork2.anarazel.de>
References: <E1UrzMa-0007Ns-KX@wrigleys.postgresql.org>
	<20130627080135.GA12870@awork2.anarazel.de>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Andres Freund <andres@2ndquadrant.com> writes:
> The problem is that pg_dump makes the comment depend on the index
> instead of the constraint:

Yeah, I figured that out yesterday, but hadn't gotten to writing a patch
yet.

> ... So what we need
> to do is to make the comment depend on the constraint instead.

Your proposed patch will only fix the problem for dumps created after
it ships.  In the past, we've tried to deal with this type of issue by
having pg_restore fix up the dependencies when reading a dump, so that
it would still work on existing dumps.

I'm afraid there may be no way to do that in this case --- it doesn't
look like there's enough info in the dump to tell where the dependency
link should have led.  But we should think about it a little before
taking the easy way out.

			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 (6+ messages)  latest in thread

Message-ID: <20760.1372343354@sss.pgh.pa.us>
Permalink:  ../20760.1372343354@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/20760.1372343354@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, andres@2ndquadrant.com, lalbin@fhcrc.org
  Subject: Re: BUG #8257: Multi-Core Restore fails when containing index comments
  In-Reply-To: <20760.1372343354@sss.pgh.pa.us>
  References: <E1UrzMa-0007Ns-KX@wrigleys.postgresql.org> <20130627080135.GA12870@awork2.anarazel.de> <20760.1372343354@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