Skip site navigation (1) Skip section navigation (2)

Re: auto fill the missing numbers

From: "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>
To: Greg Nissen <gnissen(at)geicp(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: auto fill the missing numbers
Date: 2007-01-10 01:49:31
Message-ID: 1168393771.724.119.camel@localhost.localdomain (view raw, whole thread or download thread mbox)
Lists: pgsql-odbc
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.


Joshua D. Drake

> Regards
> Greg Nissen
> Systems & HR Manager
> gnissen(at)geicp(dot)com
> Glass Expansion
> Ph 03-9320-1120
> ---------------------------(end of broadcast)---------------------------
> TIP 3: Have you checked our extensive 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

Donate to the PostgreSQL Project:

In response to

pgsql-odbc by date

Next:From: Richard Broersma JrDate: 2007-01-10 01:54:15
Subject: Re: auto fill the missing numbers
Previous:From: Greg NissenDate: 2007-01-10 01:19:57
Subject: auto fill the missing numbers

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group