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 51F7A9DCA51 for ; Sat, 11 Feb 2006 09:54:59 -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 11594-10 for ; Sat, 11 Feb 2006 09:55:02 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.204]) by postgresql.org (Postfix) with ESMTP id 25B259DC9BD for ; Sat, 11 Feb 2006 09:54:56 -0400 (AST) Received: by wproxy.gmail.com with SMTP id i28so521526wra for ; Sat, 11 Feb 2006 05:54:59 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Yi6xH4I5/Vq5WF4ORCjbnJQ5ynnztuzKDt4Ra+DBYSLNhs6Hw6HkkYEBB4BM2NJy/IKXuY04pY052DFbaZWbhIG2d/vflI5/M/ywJWockSMMHZ8ykNGUAQCCGUa2gutkLwmsZM2/apw6OFYYVtSnyV87NX6ltdIlK2tNsdxJcB4= Received: by 10.64.185.15 with SMTP id i15mr201107qbf; Sat, 11 Feb 2006 05:54:58 -0800 (PST) Received: by 10.64.209.19 with HTTP; Sat, 11 Feb 2006 05:54:58 -0800 (PST) Message-ID: <5e744e3d0602110554w50d74c28ua0698ecb3fdb46b0@mail.gmail.com> Date: Sat, 11 Feb 2006 19:24:58 +0530 From: Pandurangan R S To: Jean-Christophe Roux Subject: Re: Cc: pgsql-general@postgresql.org In-Reply-To: <20060210174254.50639.qmail@web35307.mail.mud.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060210174254.50639.qmail@web35307.mail.mud.yahoo.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.161 required=5 tests=[AWL=0.161] X-Spam-Score: 0.161 X-Spam-Level: X-Archive-Number: 200602/466 X-Sequence-Number: 91131 try using CACHE 1 (which is default) in the sequence defintion. http://www.postgresql.org/docs/8.1/static/sql-createsequence.html On 2/10/06, Jean-Christophe Roux wrote: > 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 > >