Re: WORM and Read Only Tables (v0.1)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: WORM and Read Only Tables (v0.1)
Дата
Msg-id 14182.1197386367@sss.pgh.pa.us
обсуждение исходный текст
Ответ на WORM and Read Only Tables (v0.1)  (Simon Riggs <simon@2ndquadrant.com>)
Ответы Re: WORM and Read Only Tables (v0.1)  (Simon Riggs <simon@2ndquadrant.com>)
Список pgsql-hackers
Simon Riggs <simon@2ndquadrant.com> writes:
> This command will place a ShareLock (only) on the table, preventing
> anybody from writing to the table while we freeze it. The ShareLock is
> incompatible with any transaction that has written to the table, so when
> we acquire the lock all writers to the table will have completed. We
> then run the equivalent of a VACUUM FREEZE which will then be able to
> freeze *all* rows in one pass (rather than all except the most
> recent).

This breaks MVCC.  The fact that a transaction has completed is not
license to discard tuple xmin immediately.
        regards, tom lane


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

Предыдущее
От: Simon Riggs
Дата:
Сообщение: Re: WORM and Read Only Tables (v0.1)
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: [BUGS] BUG #3799: csvlog skips some logs