| От | Tom Lane |
|---|---|
| Тема | Re: Questions about update, delete, ctid... |
| Дата | |
| Msg-id | 13663.1154350119@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Questions about update, delete, ctid... (DANTE Alexandra <Alexandra.Dante@bull.net>) |
| Ответы |
Re: Questions about update, delete, ctid...
|
| Список | pgsql-general |
DANTE Alexandra <Alexandra.Dante@bull.net> writes:
> - during a SELECT query on a tuple just updated and commited, does
> the executor first detect the old tuple and then via the c_tid link go
> to the new version of the tuple ? or go directly to the new version ?
Neither. SELECT doesn't care about update relationships, it just
returns whatever row version is current according to its snapshot.
It's only UPDATE/DELETE that are constrained to act on the most
current version of each row.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера