X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 7E11D9DC818 for ; Fri, 10 Feb 2006 13:42:58 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28228-03 for ; Fri, 10 Feb 2006 13:42:56 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from web35307.mail.mud.yahoo.com (web35307.mail.mud.yahoo.com [66.163.179.101]) by postgresql.org (Postfix) with SMTP id 300909DCACE for ; Fri, 10 Feb 2006 13:42:54 -0400 (AST) Received: (qmail 50641 invoked by uid 60001); 10 Feb 2006 17:42:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=wxSVj6STRklTSzN0NS97x/fbtqxnojgJdJ3zCSlkbRQcX7aoTfedjVTionYRijcehgdu3UgiC8dlL2U8vJ2aU7nCraEjUm1RlQPVf6XS3FoVfdXt+NY1q+YcfpIVKdV30IIxJoq9YlhtL07ing7A6U5GbPAqUTkiVS0GbVUnqjo= ; Message-ID: <20060210174254.50639.qmail@web35307.mail.mud.yahoo.com> Received: from [69.195.12.60] by web35307.mail.mud.yahoo.com via HTTP; Fri, 10 Feb 2006 09:42:54 PST Date: Fri, 10 Feb 2006 09:42:54 -0800 (PST) From: Jean-Christophe Roux To: pgsql-general@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1973067590-1139593374=:50533" Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=1.825 required=5 tests=[DNS_FROM_RFC_ABUSE=0.479, HTML_MESSAGE=0.001, MISSING_SUBJECT=1.345] X-Spam-Score: 1.825 X-Spam-Level: * X-Archive-Number: 200602/435 X-Sequence-Number: 91100 --0-1973067590-1139593374=:50533 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello, I have a table with and id field (primary key) which default value is the result of a sequence (increment explicitly set to 1). To my surprise, the real increment on insert is the total number of rows of the table. For instance, with 41 rows and a sequence last_value of 1141, the next insert row will have a value of 1182. It is not a big problem but I don't like skipping and wasting values in a sequence. Also, I'd like to understand what's going on! If someone could give me a clue that wold be greatly appreciated thanks JC --------------------------------- What are the most popular cars? Find out at Yahoo! Autos --0-1973067590-1139593374=:50533 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hello,
I have a table with and id field (primary key) which default value is the result of a sequence (increment explicitly set to 1).
To my surprise, the real increment on insert is the total number of rows of the table. For instance, with 41 rows and a sequence last_value of 1141, the next insert row will have a value of 1182. It is not a big problem but I don't like skipping and wasting values in a sequence. Also, I'd like to understand what's going on!
If someone could give me a clue that wold be greatly appreciated
thanks
JC



What are the most popular cars? Find out at Yahoo! Autos --0-1973067590-1139593374=:50533--