Re: BUG #18114: FULL JOIN is replaced by LEFT JOIN in plan

Поиск
Список
Период
Сортировка
От Ilya Anfimov
Тема Re: BUG #18114: FULL JOIN is replaced by LEFT JOIN in plan
Дата
Msg-id ZQXgn6Dz2sjDnkrv@azor.tzirechnoy.ru
обсуждение исходный текст
Ответ на Re: BUG #18114: FULL JOIN is replaced by LEFT JOIN in plan  (Wèi Cōngruì <crvv.mail@gmail.com>)
Ответы Re: BUG #18114: FULL JOIN is replaced by LEFT JOIN in plan  (Wèi Cōngruì <crvv.mail@gmail.com>)
Список pgsql-bugs
On Sat, Sep 16, 2023 at 11:32:15PM +1000, W??i C??ngru?? wrote:
>    This is not a bug. The row is filtered by the WHERE clause.
>    Sorry for disturbing.
> 
>    On Sat, Sep 16, 2023, 22:36 PG Bug reporting form <noreply@postgresql.org>
>    wrote:
> 
>      The following bug has been logged on the website:
> 
>      Bug reference:      18114
>      Logged by:          crvv
>      Email address:      crvv.mail@gmail.com
>      PostgreSQL version: 16.0
>      Operating system:   Linux
>      Description:       
> 
>      SELECT * FROM (VALUES (1)) AS t(id)
>          CROSS JOIN unnest('{1,2}'::int[]) AS a(x)
>          FULL JOIN unnest('{2,3}'::int[]) AS b(x) ON a.x = b.x
>      WHERE t.id = 1
> 
>      Execute this SQL, I get the result
>       id | x | x
>      ----+---+---
>        1 | 1 |
>        1 | 2 | 2
> 
>      My expection is
>       id | x | x
>      ----+---+---
>        1 | 1 |
>        1 | 2 | 2
>          |   | 3

 Your expectation is incorrect.
 Last record has null t.id (not 1), so it was
filtered out by WHERE.




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

Предыдущее
От: Alexander Lakhin
Дата:
Сообщение: Re: BUG #18070: Assertion failed when processing error from plpy's iterator
Следующее
От: Michael Paquier
Дата:
Сообщение: Re: BUG #18070: Assertion failed when processing error from plpy's iterator