| От | Tom Lane |
|---|---|
| Тема | Re: Transaction id inrement |
| Дата | |
| Msg-id | 8801.998320965@sss.pgh.pa.us обсуждение |
| Ответ на | Transaction id inrement ("maruthi maruthi" <maruthi49@hotmail.com>) |
| Список | pgsql-hackers |
"maruthi maruthi" <maruthi49@hotmail.com> writes:
> Transaction id is incremented even in sql queries like
> "select" which does not change the state of database, is it not
> unnecesary?.
No, it's not unnecessary. Every DB operation has to have a transaction
ID; what's more, we have to assign one long before we have any idea
whether the transaction will prove to be read-only.
It's at least theoretically possible that we could recycle the
transaction ID of a completed transaction that's proven to be read-only,
but the bookkeeping involved would be far more trouble than it's worth.
Not least because it would break MVCC assumptions about transactions
starting in sequence number order.
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера