| От | Tom Lane |
|---|---|
| Тема | Re: Index Ignored Due To Use Of View |
| Дата | |
| Msg-id | 10646.1298611975@sss.pgh.pa.us обсуждение |
| Ответ на | Index Ignored Due To Use Of View ("David Johnston" <polobo@yahoo.com>) |
| Ответы |
Re: Index Ignored Due To Use Of View
|
| Список | pgsql-general |
"David Johnston" <polobo@yahoo.com> writes:
> Now, if I simply replace the original FROM clause with the view definition
> (i.e., SELECT * FROM (SELECT ... ) alias WHERE ) I get:
> [ a different plan ]
> I now have index scans on both "filetaskinstance" and "filereference" - but
> all I appeared to do is the same as what rule re-writing should have done.
If you really just manually plugged in the view definition, then yeah
you should have gotten the same results. Could we see a complete test
case?
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера