Re: Simple postgresql.conf wizard

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Simple postgresql.conf wizard
Дата
Msg-id 26968.1228753375@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Simple postgresql.conf wizard  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Ответы Re: Simple postgresql.conf wizard  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Список pgsql-hackers
[ a bit off-topic for the thread, but ... ]

"Kevin Grittner" <Kevin.Grittner@wicourts.gov> writes:
> I'll attach the query and plan.  You'll note that the query looks a
> little odd, especially all the (1=1) tests.

FWIW, it would be better to use "TRUE" as a placeholder in your
generated queries.  I don't suppose this would make a huge percentage
difference in such complicated queries, but in and of itself there are
a lot of cycles spent to parse "1=1" and then reduce it to constant TRUE.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Updates of SE-PostgreSQL 8.4devel patches (r1268)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Optimizing DISTINCT with LIMIT