pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Markus Espenhain <espenhain@etes.de>
Cc: Postgres <pgsql-admin@postgresql.org>
Subject: Re: Problem with Sequences
Date: Fri, 12 Sep 2003 10:16:16 -0400
Message-ID: <10731.1063376176@sss.pgh.pa.us> (raw)
In-Reply-To: <20030912113022.GA8859@intranet.etes.de>
References: <20030912113022.GA8859@intranet.etes.de>

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



view thread (2+ messages)

Message-ID: <10731.1063376176@sss.pgh.pa.us>
Permalink:  ../10731.1063376176@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10731.1063376176@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: tgl@sss.pgh.pa.us, espenhain@etes.de
  Subject: Re: Problem with Sequences
  In-Reply-To: <10731.1063376176@sss.pgh.pa.us>
  References: <20030912113022.GA8859@intranet.etes.de> <10731.1063376176@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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