Re: Concurrency issue under very heay loads

Поиск
Список
Период
Сортировка
От Greenhorn
Тема Re: Concurrency issue under very heay loads
Дата
Msg-id ddcb1c340907152230k7130c305ydb12296d811ccf9e@mail.gmail.com
обсуждение исходный текст
Ответ на Concurrency issue under very heay loads  ("Raji Sridar (raji)" <raji@cisco.com>)
Список 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 по дате отправления:

Предыдущее
От: "ramasubramanian"
Дата:
Сообщение: Re: [PERFORM] Concurrency issue under very heay loads
Следующее
От: John R Pierce
Дата:
Сообщение: Re: Concurrency issue under very heay loads