From: Tom Lane <tgl@sss.pgh.pa.us>
To: Arnd Hannemann <arnd.hannemann@credativ.de>
Cc: pgsql-bugs@postgresql.org
Subject: Re: postgresql 9.0.3: parallel restore fails with comments on indices
Date: Fri, 18 Feb 2011 12:35:13 -0500
Message-ID: <10032.1298050513@sss.pgh.pa.us> (raw)
In-Reply-To: <4D5E3264.7060705@credativ.de>
References: <4D5E3264.7060705@credativ.de>
Arnd Hannemann <arnd.hannemann@credativ.de> writes:
> if pg_restore is used with -jN it fails if the dump has comments on indices.
Reproduced here, thanks for the report!
> The problem seems to be a false assumption in pg_backup_archiver.c:
> ...
> Comments are in SECTION_NONE so they get restored here regardless of dependencies, which is obviously wrong
Yeah, that seems to need a bit more thought. It's intentional that
comments that are in the PRE_DATA area get restored immediately, so as
not to eat all the overhead of a worker subprocess for them. But we
can't do it that way for comments intermixed with POST_DATA items.
I think the simplest fix is to allow this loop to process SECTION_NONE
items only as long as it hasn't skipped any prior items.
regards, tom lane
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, arnd.hannemann@credativ.de
Subject: Re: postgresql 9.0.3: parallel restore fails with comments on indices
In-Reply-To: <10032.1298050513@sss.pgh.pa.us>
References: <4D5E3264.7060705@credativ.de> <10032.1298050513@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