Re: pgsql: Create a "relation mapping" infrastructure to support changing

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: pgsql: Create a "relation mapping" infrastructure to support changing
Дата
Msg-id 8688.1265583122@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: pgsql: Create a "relation mapping" infrastructure to support changing  (Simon Riggs <simon@2ndQuadrant.com>)
Ответы Re: pgsql: Create a "relation mapping" infrastructure to support changing  (Simon Riggs <simon@2ndQuadrant.com>)
Список pgsql-committers
Simon Riggs <simon@2ndquadrant.com> writes:
> Few questions:

> We XLogFlush() in normal running, but not in recovery. Would it be
> possible for the map changes to hit disk after the data changes in that
> case?

No, because the map change is flushed to disk on sight of the WAL record
anyway.

> What we're saying is if we process a relmap update WAL record then it
> doesn't really matter whether or not we commit that transaction?

Right.  relmap update is committed independently of the surrounding
transaction.

> It would be useful to mention that the return value is volatile and can
> change across transactions or even within a transaction, just like ctid.

Hm.  I thought it was more reasonable to treat it as "stable", which is
the normal case.  You're right that there are some corner cases where it
could change without the caller's snapshot changing, but I'm not sure
it's worth worrying about.

            regards, tom lane

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

Предыдущее
От: tgl@postgresql.org (Tom Lane)
Дата:
Сообщение: pgsql: Work around deadlock problems with VACUUM FULL/CLUSTER on system
Следующее
От: Simon Riggs
Дата:
Сообщение: Re: pgsql: Create a "relation mapping" infrastructure to support changing