Re: index-only-scan when there is an index on all columns

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: index-only-scan when there is an index on all columns
Дата
Msg-id 20180227221141.tubymz7ol4wjoqiz@alap3.anarazel.de
обсуждение исходный текст
Ответ на Re: index-only-scan when there is an index on all columns  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: index-only-scan when there is an index on all columns  (David Rowley <david.rowley@2ndquadrant.com>)
Список pgsql-general
On 2018-02-27 16:58:11 -0500, Tom Lane wrote:
> > Also, I recall discussion that select statements will touch the visibility
> > map (hence causing write I/O even in a read-only query) but [1] indicates
> > that only vacuum will set them ddl will clear them.
> 
> Hm, I don't recall that, but I've not been involved in the last few rounds
> of hacking on that mechanism.

I'm fairly certain that only vacuum and table rewrites like cluster sets
all-visible, and that there was never any released code that did so
during SELECT. I think there were a few patches debating whether we
could change that, but they never really got anywhere afair.

Greetings,

Andres Freund


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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: index-only-scan when there is an index on all columns
Следующее
От: Thiemo Kellner
Дата:
Сообщение: Re: Creating complex track changes database - challenge!