pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem with Sequences
2+ messages / 2 participants
[nested] [flat]

* Problem with Sequences
@ 2003-09-12 11:30 Markus Espenhain <espenhain@etes.de>
  2003-09-12 14:16 ` Re: Problem with Sequences Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 1 reply; 2+ messages in thread

From: Markus Espenhain @ 2003-09-12 11:30 UTC (permalink / raw)
  To: pgsql-admin

Hello all,

I am new here...

I have a Problem by one of our Applications.
The Frontend ist an Access-Application who connects through ODBC to the postgres-database (7.3.2).
Two of the three Applications works fine. The other have possibly an Problem with Sequences.
The Problem is the folowing:

On user who works with the Database create an new record and save this.
Here the record becomes an ID and another Number from an two sequences.

One other user ist in this moment working with the database and create an new record, too.
Now he becomes in some circumstances the same ID like the first saved record from the other user with the effect, that the other record is nolong in the database.

Is this problem possible?
How the sequences where build (processlist)?
Can an extremly high load of the server (2.0-5.0) can create such Problems?

Thanks for ideas and help...

cu

Markus
-- 
Markus Espenhain                         Fon:  +49 (7 11) 48 90 83 - 0
ETES - EDV-Systemhaus GbR                Fax:  +49 (7 11) 48 90 83 - 50
Libanonstrasse 58 A * D-70184 Stuttgart  Web: http://www.etes.de



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: Problem with Sequences
  2003-09-12 11:30 Problem with Sequences Markus Espenhain <espenhain@etes.de>
@ 2003-09-12 14:16 ` Tom Lane <tgl@sss.pgh.pa.us>
  0 siblings, 0 replies; 2+ messages in thread

From: Tom Lane @ 2003-09-12 14:16 UTC (permalink / raw)
  To: Markus Espenhain <espenhain@etes.de>; +Cc: pgsql-admin

Markus Espenhain <espenhain@etes.de> writes:
> On user who works with the Database create an new record and save this.
> Here the record becomes an ID and another Number from an two sequences.

> One other user ist in this moment working with the database and create an new record, too.
> Now he becomes in some circumstances the same ID like the first saved record from the other user with the effect, that the other record is nolong in the database.

> Is this problem possible?

Not unless you're failing to use the sequences correctly.  Show us the
SQL queries being issued by each application, please.

			regards, tom lane



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2003-09-12 14:16 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-12 11:30 Problem with Sequences Markus Espenhain <espenhain@etes.de>
2003-09-12 14:16 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox