Re: [HACKERS] Skip all-visible pages during second HeapScan of CIC

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: [HACKERS] Skip all-visible pages during second HeapScan of CIC
Дата
Msg-id 20170308030340.atvir6kvwizf3usc@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: [HACKERS] Skip all-visible pages during second HeapScan of CIC  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: [HACKERS] Skip all-visible pages during second HeapScan of CIC  (Stephen Frost <sfrost@snowman.net>)
Список pgsql-hackers
On 2017-03-07 21:38:40 -0500, Robert Haas wrote:
> > I wonder however, if careful snapshot managment couldn't solve this as
> > well.  I have *not* thought a lot about this, but afaics we can easily
> > prevent all-visible from being set in cases it'd bother us by having an
> > "appropriate" xmin / registered snapshot.
> 
> Yeah, but that's a tax on the whole system.

I'm not sure I can buy that argument. CIC *already* holds a snapshot
during each of the two scans. By reducing the amount of time that's held
in the second scan, the systemwide impact is reduced, because it's held
for a shorter amount of time.  We need to hold a slightly "more
aggressive" snapshot, that's true, but if you have high xid throughput
those effects should roughly balance each other.

Greetings,

Andres Freund



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: [HACKERS] Implementation of SASLprep for SCRAM-SHA-256
Следующее
От: Andres Freund
Дата:
Сообщение: Re: [HACKERS] REINDEX CONCURRENTLY 2.0