| От | Greg Stark |
|---|---|
| Тема | Re: Help with optimizing a sql statement |
| Дата | |
| Msg-id | 87zmkz6955.fsf@stark.xeocode.com обсуждение исходный текст |
| Ответ на | Re: Help with optimizing a sql statement (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-performance |
Tom Lane <tgl@sss.pgh.pa.us> writes: > Are you sure this WHERE clause really expresses your intent? It seems > awfully oddly constructed. Removing the redundant parens and clarifying > the layout, I get ... > That next-to-last major AND clause seems a rather unholy mix of join and > restriction clauses; I wonder if it's not buggy in itself. FYI RT uses a perl module called SearchBuilder which constructs these queries dynamically. So he's probably not really free to fiddle with the query all he wants. At the very least I would suggest checking the changelog for SearchBuilder for more recent versions. There have been a lot of tweaks for working with Postgres. In the past it really only worked properly with MySQL. -- greg
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера