Re: Questions about SERIAL type

Поиск
Список
Период
Сортировка
От Ned Wolpert
Тема Re: Questions about SERIAL type
Дата
Msg-id XFMail.20011128163750.ned.wolpert@knowledgenet.com
обсуждение исходный текст
Ответ на Re: Questions about SERIAL type  ("G. Anthony Reina" <reina@nsi.edu>)
Список pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


On 28-Nov-2001 G. Anthony Reina wrote:
> However, perhaps the other thing to do is to not increment the SERIAL value
> on an aborted transaction. I'm not sure why serial has to be incremented if
> the transaction fails. Of course, this won't take care of unused SERIAL
> numbers when DELETEs occur.

I thought its incremented since the sequence is outside of the transaction. 
That way, if multiple clients are doing inserts using the sequence, one
doesn't have to wait for the other transactions to end before they get a lock
on the sequence.


Virtually, 
Ned Wolpert <ned.wolpert@knowledgenet.com>

D08C2F45:  28E7 56CB 58AC C622 5A51  3C42 8B2B 2739 D08C 2F45 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8BXVOiysnOdCML0URApJnAJ9Z43xFgJRevgoNIQEGYkwkxbAAJACbBopF
N3slqHoAxPq7HkcDaI7FMsY=
=r9mw
-----END PGP SIGNATURE-----


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

Предыдущее
От: Doug McNaught
Дата:
Сообщение: Re: Questions about SERIAL type
Следующее
От: Thomas Lockhart
Дата:
Сообщение: Re: Call for platform testing