Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id BD9D99FB204 for ; Tue, 9 Jan 2007 21:49:37 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-new, port 10024) with ESMTP id 86592-01 for ; Tue, 9 Jan 2007 21:49:30 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from lists.commandprompt.com (host-254.commandprompt.net [207.173.203.254]) by postgresql.org (Postfix) with ESMTP id 2E4739FA2FC for ; Tue, 9 Jan 2007 21:49:30 -0400 (AST) Received: from [192.168.1.50] (or-67-76-146-141.sta.embarqhsd.net [67.76.146.141]) (authenticated bits=0) by lists.commandprompt.com (8.13.7/8.13.6) with ESMTP id l0A1nLff011004 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Tue, 9 Jan 2007 17:49:21 -0800 Subject: Re: auto fill the missing numbers From: "Joshua D. Drake" To: Greg Nissen Cc: pgsql-odbc@postgresql.org In-Reply-To: References: Content-Type: text/plain Organization: Command Prompt, Inc. Date: Tue, 09 Jan 2007 17:49:31 -0800 Message-Id: <1168393771.724.119.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV version 0.88.5, clamav-milter version 0.88.5 on projects.commandprompt.com X-Virus-Status: Clean X-Greylist: Sender succeded SMTP AUTH authentication, not delayed by milter-greylist-1.6 (lists.commandprompt.com [192.168.2.159]); Tue, 09 Jan 2007 17:49:22 -0800 (PST) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200701/15 X-Sequence-Number: 8554 On Wed, 2007-01-10 at 12:19 +1100, Greg Nissen wrote: > i have recently converted an ms access program using the standard jet > backend over to postgres using an ODBC driver, i have managed to sort most > bugs out except this one > > ms access already had some 57000 transaction loaded into the old database, > when i linked to postgres using the ODBC driver, all these transaction came > over, as excepted, but when i create a new record now, the database is > filling in all the missing numbers prior to 57000, which jumbles up my > record table. How can i get the postgres database to start off from 57001 > > any help would be a help I am guessing here but likely you have an autoincrementing number that the sequence was set to 1. I suggest you look into setval() in the docs. Sincerely, Joshua D. Drake > > > Regards > Greg Nissen > Systems & HR Manager > gnissen@geicp.com > Glass Expansion > Ph 03-9320-1120 > > > > > ---------------------------(end of broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq > -- === The PostgreSQL Company: Command Prompt, Inc. === Sales/Support: +1.503.667.4564 || 24x7/Emergency: +1.800.492.2240 Providing the most comprehensive PostgreSQL solutions since 1997 http://www.commandprompt.com/ Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate