Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence

Поиск
Список
Период
Сортировка
От Sebastien Flaesch
Тема Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence
Дата
Msg-id DBAP191MB12893B2B95B14B2EC2482ED8B08F9@DBAP191MB1289.EURP191.PROD.OUTLOOK.COM
обсуждение исходный текст
Ответ на Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence  (Francisco Olarte <folarte@peoplecall.com>)
Re: Concurrent INSERT statements with RETURNING clause resetting SERIAL sequence  (Thomas Kellerer <shammat@gmx.net>)
Список pgsql-general
Tom,
If that's the behavior you want, you can build it out of standard SQL facilities (e.g. update a one-row table).
Can you elaborate please?

Do you mean the code should use an UPDATE on a one-row table to acquire a lock?

Seb

В списке pgsql-general по дате отправления:

Предыдущее
От: Benedict Holland
Дата:
Сообщение: Re: restore question
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: restore question