Re: BUG #6662: Database do not push condition to subquery, test case for bug 6658
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: BUG #6662: Database do not push condition to subquery, test case for bug 6658 |
| Дата | |
| Msg-id | 18762.1337739288@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: BUG #6662: Database do not push condition to subquery, test case for bug 6658 (Maxim Boguk <maxim.boguk@gmail.com>) |
| Ответы |
Re: BUG #6662: Database do not push condition to subquery,
test case for bug 6658
|
| Список | pgsql-bugs |
Maxim Boguk <maxim.boguk@gmail.com> writes:
> if anytextcat() and textanycat() are marked volatile,
> why the database allows create index on supposedly to be volatile
> expression:
> create index test_val_special on test((val || ''));
CREATE INDEX inlines anytextcat (which is just a SQL function) before
making the volatility test, cf commit 5a86e5e19. The reason the
subselect flattening code has difficulty with this case is that that
happens before function inlining does, so the expression still looks
volatile even though it really isn't.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера