Received: from makus.postgresql.org (makus.postgresql.org [98.129.198.125]) by mail.postgresql.org (Postfix) with ESMTP id 47ED3DDBC27 for ; Fri, 2 Dec 2011 05:48:15 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWPj4-0000hC-8C for pgsql-bugs@postgresql.org; Fri, 02 Dec 2011 09:48:15 +0000 Received: from [204.145.120.229] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RWPir-0005dg-NW for pgsql-bugs@postgresql.org; Fri, 02 Dec 2011 09:48:02 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RWPir-0003bE-8Z for pgsql-bugs@postgresql.org; Fri, 02 Dec 2011 09:48:01 +0000 Date: Fri, 02 Dec 2011 09:48:01 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6317: sequence error for pg_dump To: pgsql-bugs@postgresql.org From: hmf@alkheme.com X-Pg-Spam-Score: -3.1 (---) X-Archive-Number: 201112/24 X-Sequence-Number: 31835 The following bug has been logged on the website: Bug reference: 6317 Logged by: hua ming fei = Email address: hmf@alkheme.com PostgreSQL version: 9.0.1 Operating system: Centos 5.5 Description: = use pg_dump when didn't close the application , weird things occured . = the current value of one sequence is more slower than the max number of one primary key base on the sequence . So, I looked into the dump file , found command" SELECT pg_catalog.setval('attrnamemaster_attrnameid_seq', 3009, tru= e);" to set sequence values number , but the import data, there are many lines with number larger than the sequence value : 3012 38 2147483647 t 10041 material material = material 1004.10041 4.1 f 3013 38 2147483647 t 10042 disable = 1004.10042 4.2 f =