Re: Why Postgres doesn't use TID scan?

Поиск
Список
Период
Сортировка
От Andrew Gierth
Тема Re: Why Postgres doesn't use TID scan?
Дата
Msg-id 87bm5hwxy2.fsf@news-spur.riddles.org.uk
обсуждение исходный текст
Ответ на Re: Why Postgres doesn't use TID scan?  (Vladimir Ryabtsev <greatvovan@gmail.com>)
Ответы Re: Why Postgres doesn't use TID scan?  (Vladimir Ryabtsev <greatvovan@gmail.com>)
Список pgsql-performance
>>>>> "Vladimir" == Vladimir Ryabtsev <greatvovan@gmail.com> writes:

 Vladimir> I can't believe it.
 Vladimir> I see some recommendations in Internet to do like this

well, 90% of what you read on the Internet is wrong.

 Vladimir> Did it really work in 2011? Are you saying they broke it?
 Vladimir> It's a shame...

The method in that SO link does work, it's just slow. The workaround is
to do it like this instead:

delete from mytable
 where ctid = any (array(select ctid from mytable
                          where ...
                          order by ...
                          limit 1000));

But of course that's still an ugly hack.

-- 
Andrew (irc:RhodiumToad)


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

Предыдущее
От: Patrick Mulrooney
Дата:
Сообщение: Re: Increasing parallelism of queries while using file fdw and partitions
Следующее
От: Vladimir Ryabtsev
Дата:
Сообщение: Re: Why Postgres doesn't use TID scan?