Re: Trying to understand page structures in PG

Поиск
Список
Период
Сортировка
От rob stone
Тема Re: Trying to understand page structures in PG
Дата
Msg-id 1459956904.7759.7.camel@gmail.com
обсуждение исходный текст
Ответ на Re: Trying to understand page structures in PG  (Albe Laurenz <laurenz.albe@wien.gv.at>)
Ответы Re: Trying to understand page structures in PG  (Jeff Janes <jeff.janes@gmail.com>)
Список pgsql-general
On Wed, 2016-04-06 at 10:33 +0000, Albe Laurenz wrote:

<snip>
> Every row has two system columns associated with it: xmin and xmax
>
> xmin is the transaction ID that created the row, while xmax is
> the transaction ID that removed the row.
>
> So when an update takes place, xmax of the original row and xmin
> of the new row are set to the transaction ID of the current
> transaction.
>
> 
> Yours,
> Laurenz Albe
>
</snip>

Hello Laurenz,

Out of curiosity:-
1) If you only updated a column defined as BOOLEAN, DATE or TIMESTAMP,
the tuples physical size should be the same. Is it written back to the
same page with altered xmin, xmax values?

2) If you defined a table with a FILLFACTOR of say 70%, and there is
still space left on its page for the updated tuple, does the same
apply?

I am curious because of "while xmax is the transaction ID that
*removed* the row".

Not urgent.

Cheers,
rob


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

Предыдущее
От: Thomas Kellerer
Дата:
Сообщение: Re: what database schema version management system to use?
Следующее
От: Jeff Janes
Дата:
Сообщение: Re: what database schema version management system to use?