Re: do only critical work during single-user vacuum?

Поиск
Список
Период
Сортировка
От Peter Geoghegan
Тема Re: do only critical work during single-user vacuum?
Дата
Msg-id CAH2-Wzkb2ixRbxNsUZ2PA5-uqSh4+Xfq-NmcEKD=JNcncyDPTA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: do only critical work during single-user vacuum?  (Peter Geoghegan <pg@bowt.ie>)
Ответы Re: do only critical work during single-user vacuum?  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
On Wed, Feb 16, 2022 at 10:27 AM Peter Geoghegan <pg@bowt.ie> wrote:
> True, but the most recent version where that's actually possible is
> PostgreSQL 8.0, which was released in early 2005.

It just occurred to me that the main historic reason for the single
user mode advice was the lack of virtual XIDs. The commit that added
the xidStopLimit behavior (commit 60b2444cc3) came a couple of years
before the introduction of virtual transaction IDs (in commit
295e63983d). AFAICT, the advice about single-user mode was added at a
time where exceeding xidStopLimit caused the system to grind to a halt
completely -- even trivial SELECTs would have failed once Postgres 8.1
crossed the xidStopLimit limit.

It seems as if the advice about single user mode persisted for no
great reason at all. Technically there were some remaining reasons to
keep it around (like the truncation thing), but overall these
secondary reasons could have been addressed much sooner if somebody
had thought about it.

-- 
Peter Geoghegan



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

Предыдущее
От: David Steele
Дата:
Сообщение: Re: Allow root ownership of client certificate key
Следующее
От: Andres Freund
Дата:
Сообщение: Re: USE_BARRIER_SMGRRELEASE on Linux?