Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 9984D68DFC for ; Wed, 16 May 2012 10:08:48 -0300 (ADT) Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1SUdy5-0004z9-Vz for pgsql-bugs@postgresql.org; Wed, 16 May 2012 13:08:47 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id q4GD8QL1023210; Wed, 16 May 2012 09:08:26 -0400 (EDT) To: Martin Pitt cc: PostgreSQL Bugs , Andrew Dunstan Subject: Re: 9.2beta1 regression: pg_restore --data-only does not set sequence values any more In-reply-to: <20120515122500.GD3041@piware.de> References: <20120515122500.GD3041@piware.de> Comments: In-reply-to Martin Pitt message dated "Tue, 15 May 2012 14:25:00 +0200" Date: Wed, 16 May 2012 09:08:26 -0400 Message-ID: <23209.1337173706@sss.pgh.pa.us> From: Tom Lane X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201205/93 X-Sequence-Number: 33064 Martin Pitt writes: > while packaging 9.2 beta 1 for Debian/Ubuntu the postgresql-common > test suite noticed a regression: It seems that pg_restore --data-only > now skips the current value of sequences, so that in the upgraded > database the sequence counter is back to the default. I believe this is a consequence of commit a4cd6abcc901c1a8009c62a27f78696717bb8fe1, which introduced the entirely false assumption that --schema-only and --data-only have something to do with the order that entries appear in the archive ... regards, tom lane