Re: Concurrency issue under very heay loads - Mailing list pgsql-general

From Greenhorn
Subject Re: Concurrency issue under very heay loads
Date
Msg-id ddcb1c340907152230k7130c305ydb12296d811ccf9e@mail.gmail.com
Whole thread Raw
In response to Concurrency issue under very heay loads  ("Raji Sridar (raji)" <raji@cisco.com>)
List pgsql-general
2009/7/16 Raji Sridar (raji) <raji@cisco.com>:
> Hi,
>
> We use a typical counter within a transaction to generate order sequence
> number and update the next sequence number. This is a simple next counter -
> nothing fancy about it.  When multiple clients are concurrently accessing
> this table and updating it, under extermely heavy loads in the system
> (stress testing), we find that the same order number is being generated for
> multiple clients. Could this be a bug? Is there a workaround? Please let me
> know.
>
> Thanks
> Raji

You'll not have this problem if you use serial type.

pgsql-general by date:

Previous
From: "ramasubramanian"
Date:
Subject: Re: [PERFORM] Concurrency issue under very heay loads
Next
From: John R Pierce
Date:
Subject: Re: Concurrency issue under very heay loads