Re: [SQL] "SELECT IN" Still Broken in 7.4b

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: [SQL] "SELECT IN" Still Broken in 7.4b
Дата
Msg-id 200308211419.47226.josh@agliodbs.com
обсуждение исходный текст
Ответ на Re: [SQL] "SELECT IN" Still Broken in 7.4b  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom,

> I'm toying with the notion of ripping out that logic and instead
> building an in-memory hashtable of already-returned TIDs.  This could
> theoretically run out of memory if the multiple indexscan returns enough
> tuples, but I think in practice that wouldn't happen because the planner
> wouldn't choose an indexscan when very large numbers of tuples are being
> selected.

Don't forget all of the tyros who tune their queries through "set
enable_seqscan=false".  I think we'd need some kind of memory safety valve on
this, like sandboxing it in sort_mem.

--
-Josh BerkusAglio Database SolutionsSan Francisco



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

Предыдущее
От: Manfred Koizar
Дата:
Сообщение: Re: [SQL] "SELECT IN" Still Broken in 7.4b
Следующее
От: Manfred Koizar
Дата:
Сообщение: Re: Decent VACUUM (was: Buglist)