Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 8F2229FA2FC for ; Tue, 9 Jan 2007 21:54:23 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-new, port 10024) with ESMTP id 80749-08 for ; Tue, 9 Jan 2007 21:54:12 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web31815.mail.mud.yahoo.com (web31815.mail.mud.yahoo.com [68.142.206.168]) by postgresql.org (Postfix) with SMTP id 4505D9FB204 for ; Tue, 9 Jan 2007 21:54:17 -0400 (AST) Received: (qmail 33944 invoked by uid 60001); 10 Jan 2007 01:54:15 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=MTLwL6CEZyFOxcZ3XEretDIC3D5PpIm5K+cB70OXxZ4B6gpRfZqvnPTAF3PGHPZh7n6YY/iS8OqxnZ150wCuxferx8RSqxA3vLvo5g9Dd7d3nxnNDqu/qcglua5KEWOXIw1417+RQqlzg9Ubb78hWOPQkK8MIZnh1HAyZYpIk68=; X-YMail-OSG: 4hqSFeoVM1mFzh9zYLJuh_p8sDoCFgjHDGb7Tro4dV_j.13RtYJwEpdjF_NCCrPtWA-- Received: from [75.84.83.178] by web31815.mail.mud.yahoo.com via HTTP; Tue, 09 Jan 2007 17:54:15 PST Date: Tue, 9 Jan 2007 17:54:15 -0800 (PST) From: Richard Broersma Jr Subject: Re: auto fill the missing numbers To: Greg Nissen , pgsql-odbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <799740.32678.qm@web31815.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.905 tagged_above=0 required=5 tests=AWL, BAYES_40, DNS_FROM_RFC_ABUSE, DNS_FROM_RFC_POST, DNS_FROM_RFC_WHOIS X-Spam-Level: * X-Archive-Number: 200701/16 X-Sequence-Number: 8555 > 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 I assume that by transaction you mean record I assume that you are using serial or big serial as the autonumber for your new postgresql tables. 1) you need to determine the table_sequence name that was created for you table. 2) change the table_sequence value to one greater than the values already stored in the table from access. The function you need it setval() http://www.postgresql.org/docs/8.2/interactive/functions-sequence.html you can use setval() useing the psql client utility to postgresql. Regards, Richard Broersma Jr.