Re: planner bug regarding lateral and subquery?

Поиск
Список
Период
Сортировка
От Tatsuro Yamada
Тема Re: planner bug regarding lateral and subquery?
Дата
Msg-id 37fae279-7453-ebc7-0e27-3bd2f2acba3e@lab.ntt.co.jp
обсуждение исходный текст
Ответ на Re: planner bug regarding lateral and subquery?  ("David G. Johnston" <david.g.johnston@gmail.com>)
Список pgsql-hackers
Hi David and Stephen,

On 2018/03/14 12:59, David G. Johnston wrote:
> On Tuesday, March 13, 2018, Tatsuro Yamada <yamada.tatsuro@lab.ntt.co.jp <mailto:yamada.tatsuro@lab.ntt.co.jp>>
wrote:
> 
>     Hi Hackers,
> 
>     I found a bug, maybe.
>     If it is able to get an explain command result from below query successfully,
>     I think that it means the query is executable.
> 
> 
> There is a difference between executable, compilable, and able to execute to completion, runtime, on specific data. 
You'veproven the former but as the error indicates specific data causes the complete execution of the query to fail.
 
> 
> I can write "select cola / colb from tbl" and as long as there are no zeros in colb the query will complete, but if
thereis you get a divide by zero runtime error.  This is similar.
 
> 
> David J.

Thank you for the explanation.
I understand that it's a runtime error and not able to avoid in parser and planner. :)


Thanks,
Tatsuro Yamada



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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: add queryEnv to ExplainOneQuery_hook
Следующее
От: Tom Lane
Дата:
Сообщение: Re: add queryEnv to ExplainOneQuery_hook