Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsFqx-0003lG-HC for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 17:19:28 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UsFqw-00075m-Vg for pgsql-bugs@arkaria.postgresql.org; Thu, 27 Jun 2013 17:19:27 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsFqv-00074l-R7 for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 17:19:25 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UsFqo-0003VK-Ug for pgsql-bugs@postgresql.org; Thu, 27 Jun 2013 17:19:25 +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 r5RHJDod025224; Thu, 27 Jun 2013 13:19:13 -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: <20130627144315.GL1254@alap2.anarazel.de> References: <20130627080135.GA12870@awork2.anarazel.de> <20760.1372343354@sss.pgh.pa.us> <20130627144315.GL1254@alap2.anarazel.de> Comments: In-reply-to Andres Freund message dated "Thu, 27 Jun 2013 16:43:15 +0200" Date: Thu, 27 Jun 2013 13:19:13 -0400 Message-ID: <25223.1372353553@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: > On 2013-06-27 10:29:14 -0400, Tom Lane wrote: >> 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. Perhaps. The lack of previous complaints does suggest this situation isn't so common. >> 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 like that either, though we may be forced into it if we find more bugs in comment dependencies. Anyway, fixing pg_dump's logic is not wrong; I was just hoping we could also think of a workaround on the pg_restore side. 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