Re: Index only scan and ctid

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Index only scan and ctid
Дата
Msg-id 39d8715e58e0aaffc0295628270f6e0be6db68a2.camel@cybertec.at
обсуждение исходный текст
Ответ на Re: Index only scan and ctid  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Index only scan and ctid  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, 2020-02-03 at 14:43 -0500, Tom Lane wrote:
> Laurenz Albe <laurenz.albe@cybertec.at> writes:
> > I noticed that "ctid" in the select list prevents an index only scan:
> > This strikes me as strange, since every index contains "ctid".
> 
> There's no provision for an IOS to return a system column, though.
> Not sure what it'd take to make that possible.

I was reminded what the obvious problem is:
the ctid of a heap only tuple is not stored in the index.  Duh.

Yours,
Laurenz Albe




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #16171: Potential malformed JSON in explain output
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Index only scan and ctid