Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDQ9-0003XW-HF for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 14:43:37 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UsDQ8-0000Cm-S5 for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 14:43:36 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDQ8-0000Cg-6G for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 14:43:36 +0000 Received: from mail.anarazel.de ([217.115.131.40]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDQ5-0000qs-Qr for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 14:43:35 +0000 Received: from intern.anarazel.de (unknown [89.204.130.143]) (Authenticated sender: andres@anarazel.de) by mail.anarazel.de (Postfix) with ESMTPSA id 71E555E0005; Thu, 27 Jun 2013 16:43:31 +0200 (CEST) Date: Thu, 27 Jun 2013 16:43:15 +0200 From: Andres Freund To: Tom Lane Cc: lalbin@fhcrc.org, pgsql-bugs@postgresql.org Subject: Re: BUG #8257: Multi-Core Restore fails when containing index comments Message-ID: <20130627144315.GL1254@alap2.anarazel.de> References: <20130627080135.GA12870@awork2.anarazel.de> <20760.1372343354@sss.pgh.pa.us> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20760.1372343354@sss.pgh.pa.us> X-Pg-Spam-Score: 0.1 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org 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