Received: from mail.postgresql.org (webmail.postgresql.org [216.126.85.28]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f03Fms792814 for ; Wed, 3 Jan 2001 10:48:54 -0500 (EST) (envelope-from pgsql-docs-owner@postgresql.org) Received: from gateway.gigaideas.com.cn ([61.129.43.213]) by mail.postgresql.org (8.11.1/8.11.1) with ESMTP id f037vm761114 for ; Wed, 3 Jan 2001 02:57:52 -0500 (EST) (envelope-from anson@gigaideas.com.cn) Received: from anson.gigaideas.com.cn (anson.gigaideas.com.cn [192.168.100.82]) by gateway.gigaideas.com.cn (8.9.3/8.9.3) with ESMTP id QAA01484 for ; Wed, 3 Jan 2001 16:03:25 +0800 Date: Wed, 3 Jan 2001 16:04:36 +0800 From: anson X-Mailer: The Bat! (v1.38e) S/N A1D26E39 / Educational Reply-To: anson X-Priority: 3 (Normal) Message-ID: <5669.010103@gigaideas.com.cn> To: pgsql-docs@postgresql.org Subject: Sequence Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200101/17 X-Sequence-Number: 151 Hello, i have some problem with the Sequence of pgsql. for example: i have made a talbe named tbl_a and his sequence named tbl_a_log_id_seq, then i insert into tbl_a with amounts of records, so the last value of tbl_a_log_id_seq become 200. someday, i get this table move to a new machine, create a new table, a new sequence, so there becomes the problem! i cann't insert a new record into tbl_a when there are old records in the table, because the log_id has become from 1 to 200, but the last_value of tbl_a_log_id_seq is 1!!!!!and i even can't change the value of last_value, how can i do now? i don't wanna lose the old records! please help me! -- Best regards, anson mailto:anson@gigaideas.com.cn