Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDCS-0002lx-Mn for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 14:29:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UsDCS-0000IF-73 for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 14:29:28 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDCR-0000I5-JK for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 14:29:27 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsDCK-0000AH-HR for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 14:29:27 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id r5RETEGw020761; Thu, 27 Jun 2013 10:29:14 -0400 (EDT) From: Tom Lane To: Andres Freund cc: lalbin@fhcrc.org, pgsql-bugs@postgresql.org Subject: Re: BUG #8257: Multi-Core Restore fails when containing index comments In-reply-to: <20130627080135.GA12870@awork2.anarazel.de> References: <20130627080135.GA12870@awork2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 27 Jun 2013 10:01:35 +0200" Date: Thu, 27 Jun 2013 10:29:14 -0400 Message-ID: <20760.1372343354@sss.pgh.pa.us> X-Pg-Spam-Score: -3.2 (---) 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 Andres Freund 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