Re: Inline non-SQL SRFs using SupportRequestSimplify

Поиск
Список
Период
Сортировка
От zengman
Тема Re: Inline non-SQL SRFs using SupportRequestSimplify
Дата
Msg-id tencent_2DD7C01758D855FF70B3E6DD@qq.com
обсуждение исходный текст
Ответ на Re: Inline non-SQL SRFs using SupportRequestSimplify  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Well, from my perspective, the test logic for this feature seems a bit odd: 
even if you directly modify the function body to return NULL; or return 1/0;, 
none of this execution logic takes effect at all—it serves no purpose whatsoever as long as inlining succeeds.
This could be unfriendly to developers who are new to this feature, 
so I added a test for this scenario to verify that our logic falls back to the function body when inlining fails. 
This may just be my personal opinion, though; if you think everything is fine, we can leave it as it is.

--
Regards,
Man Zeng
www.openhalo.org

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