Re: How indexes are updated

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: How indexes are updated
Дата
Msg-id 4554.1055972924@sss.pgh.pa.us
обсуждение исходный текст
Ответ на How indexes are updated  ("Bob Powell" <Bob@hotchkiss.org>)
Список pgsql-general
"Bob Powell" <Bob@hotchkiss.org> writes:
> I think I have proven to myself that when a new record is added to a table it is added to the end of the table.
Also,when a record in a table is updated it is also moved to the bottom of the table.   

Only if there's not any free space that could hold the record earlier in
the table.  (The free space has to not only exist, but be entered in the
FSM, though, so there are cases where there might be free space
available but the backend doesn't know about it.)

> Can someone tell me when the indexes on the columns in the table are
> updated.

Immediately after insertion of the record.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Building pgeasy on HP-UX
Следующее
От: Stephan Szabo
Дата:
Сообщение: Re: can't "grant all on database..."