pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andres Freund <andres@2ndquadrant.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
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 16:43:15 +0200
Message-ID: <20130627144315.GL1254@alap2.anarazel.de> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

On 2013-06-27 10:29:14 -0400, Tom Lane wrote:
> > ... 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.

Yes :(. On the other hand, it's probably not too common to create
comments on indexes that haven't been created explicitly.

> 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.

The only thing I could think of - but which I thought to be too kludgey
- was to simply delay the creation of all comments and restore them
together with ACLs. I don't think we can have dependencies towards
comments.

Greetings,

Andres Freund

-- 
 Andres Freund	                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


-- 
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: <20130627144315.GL1254@alap2.anarazel.de>
Permalink:  ../20130627144315.GL1254@alap2.anarazel.de/
Also on:    postgresql.org/message-id/20130627144315.GL1254@alap2.anarazel.de

 · 

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

* 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