X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 1AC655352F for ; Sun, 10 Apr 2005 23:44:40 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 81363-04 for ; Mon, 11 Apr 2005 02:44:30 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id C537853610 for ; Sun, 10 Apr 2005 23:44:28 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j3B2iICb018964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sun, 10 Apr 2005 20:44:20 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j3B2iHCh016282; Sun, 10 Apr 2005 20:44:17 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j3B2iHFW016281; Sun, 10 Apr 2005 20:44:17 -0600 (MDT) (envelope-from mfuhr) Date: Sun, 10 Apr 2005 20:44:17 -0600 From: Michael Fuhr To: David =?iso-8859-1?Q?S=E1ez?= Palacios Cc: pgsql-admin@postgresql.org Subject: Re: Problems recovering sequences from a backup done with pg_dump Message-ID: <20050411024417.GA16234@winnie.fuhr.org> References: <73eeb6bd0504060418ef760cc@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <73eeb6bd0504060418ef760cc@mail.gmail.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/129 X-Sequence-Number: 17142 On Wed, Apr 06, 2005 at 10:18:34AM -0100, David Sáez Palacios wrote: > > I've done a dump from a PostgreSQL 7.4.5 using pg_dump and it worked find. > The problem comes when I restore the backup and all the sequences values are > 1. I can fix the problem manually giving the sequeces their appropiate value > but I wonder wether is a way to force pg_dump to store this information. I just did some simple tests with 7.4.7 and sequence values were restored. What commands are you running? Could you provide a complete test case that demonstrates the problem? -- Michael Fuhr http://www.fuhr.org/~mfuhr/