| От | Tom Lane |
|---|---|
| Тема | Re: FW: Query length limitation in postgres server > 8.2.9 |
| Дата | |
| Msg-id | 3760.1247014700@sss.pgh.pa.us обсуждение |
| Ответ на | Re: FW: Query length limitation in postgres server > 8.2.9 (Greg Stark <gsstark@mit.edu>) |
| Список | pgsql-sql |
Greg Stark <gsstark@mit.edu> writes:
> On Tue, Jul 7, 2009 at 11:33 PM, <jacob@aers.ca> wrote:
>> After some investigation it seems that the new server is refusing to use the index's but if I
>> limit the number of arguments in the latter part of the statement to 100 then it works as
>> expected in the expected amount of time using the indexs.
> Ugh, I thought this sounded familiar. I think you're hitting this
> limit which was put in place in 8.2.12 to protect against very slow
> planning times for very long IN lists:
Nonsense ... unless perhaps the index is partial, and the IN condition
is relevant to proving it's legal to use the index? Given the lack of
any schema information in the complaint, I suppose I can't rule that
out, but one would hope the OP would have mentioned such a thing.
regards, tom lane
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера