Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrzMp-0002pS-Im for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Jun 2013 23:43:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1UrzMo-0000if-Oz for pgsql-bugs@arkaria.postgresql.org; Wed, 26 Jun 2013 23:43:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrzMn-0000iY-P8 for pgsql-bugs@postgresql.org; Wed, 26 Jun 2013 23:43:13 +0000 Received: from mahout.postgresql.org ([2001:4800:7903:4::123]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1UrzMh-00018E-Ek for pgsql-bugs@postgresql.org; Wed, 26 Jun 2013 23:43:13 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UrzMf-0001Mb-VF for pgsql-bugs@postgresql.org; Wed, 26 Jun 2013 23:43:07 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.80) (envelope-from ) id 1UrzMa-0007Ns-KX for pgsql-bugs@postgresql.org; Wed, 26 Jun 2013 23:43:00 +0000 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: BUG #8257: Multi-Core Restore fails when containing index comments To: pgsql-bugs@postgresql.org From: lalbin@fhcrc.org Message-Id: Date: Wed, 26 Jun 2013 23:43:00 +0000 X-Pg-Spam-Score: -0.5 (/) 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 The following bug has been logged on the website: Bug reference: 8257 Logged by: Lloyd Albin Email address: lalbin@fhcrc.org PostgreSQL version: 9.2.4 Operating system: SUSE Linux (64-bit) Description: I have found the restore will fail when using pg_restore's -j option, with more than one core, on a dump that contains a COMMENT INDEX. I have tried this using both Postgres 9.0.12 & 9.2.4 I have created a test case that shows the problem. Create a database called test_db. CREATE DATABASE test_db WITH OWNER = postgres ENCODING = 'UTF8' TEMPLATE = template0; Run this next section to add the table, index, and index comment to the test_db database. CREATE TABLE public.tbl_test ( pkey TEXT NOT NULL, CONSTRAINT tbl_test_pkey PRIMARY KEY(pkey) ); COMMENT ON INDEX public.tbl_test_pkey IS 'Index Comment'; Once this test database is created, create a backup of the database. pg_dump -Fc test_db > test_db.dump Drop the test database and now lets restore it. pg_restore -C -j 3 -d postgres -Fc test_db.dump pg_restore: [archiver (db)] Error while PROCESSING TOC: pg_restore: [archiver (db)] Error from TOC entry 2525; 0 0 COMMENT INDEX tbl_test_pkey postgres pg_restore: [archiver (db)] could not execute query: ERROR: relation "tbl_test_pkey" does not exist Command was: COMMENT ON INDEX tbl_test_pkey IS 'Index Comment'; pg_restore: [archiver] worker process failed: exit code 1 If you use -j 1 or skip the -j option the restore will restore without any errors. Lloyd Albin Statistical Center for HIV/AIDS Research and Prevention (SCHARP) Vaccine and Infectious Disease Division (VIDD) Fred Hutchinson Cancer Research Center (FHCRC) -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs