Re: What happens to a primary key b-tree index when a table tuple is deleted by a transaction?

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: What happens to a primary key b-tree index when a table tuple is deleted by a transaction?
Дата
Msg-id CAFj8pRALeqbg5EOhTv8M1qG8kdGLxpZ8pVbw34O2_QMeNLukbg@mail.gmail.com
обсуждение исходный текст
Ответ на What happens to a primary key b-tree index when a table tuple is deleted by a transaction?  (Luby Liao <lubyliao@gmail.com>)
Список pgsql-general
Hello

2012/11/25 Luby Liao <lubyliao@gmail.com>:
> Bruce Momjian's book says that (p109)
>
>> When POSTGRESQL updates a row, it keeps the old copy of the row in the
>> table file and writes a new one. The old row is marked as expired, and used
>> by other transactions still viewing the database in its prior state.
>> Deletions are similarly marked as expired, but not removed from the table
>> file.
>
>
> If the b-tree changes for the transaction, would it not become broken for
> other transactions?
> Can anyone  tell me how Postgres handles this?  Thank you, Luby

What I know - PostgreSQL doesn't modify btree when tuples are deleted.

Regards

Pavel Stehule


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

Предыдущее
От: Luby Liao
Дата:
Сообщение: What happens to a primary key b-tree index when a table tuple is deleted by a transaction?
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: What happens to a primary key b-tree index when a table tuple is deleted by a transaction?