Skip to content
This repository was archived by the owner on Feb 20, 2023. It is now read-only.
This repository was archived by the owner on Feb 20, 2023. It is now read-only.

bug: Can not generate plan #1649

Open
Open
@iwanttobepowerful

Description

@iwanttobepowerful
postgres=# CREATE TABLE t1(a INT, b INT);
CREATE TABLE
postgres=# CREATE TABLE t2(c INT, d INT);;
CREATE TABLE
postgres=# SELECT * FROM t1 left JOIN t2 ON t2.c <= t1.a;  -- segment fault
postgres=# SELECT * FROM t1 right JOIN t2 ON t2.c = t1.a;  -- segment fault
postgres=# SELECT count(*) FROM t1 right JOIN t2 ON t2.c <= t1.a;  -- infinite loop
postgres=# SELECT count(*) FROM t1 left JOIN t2 ON t2.c <= t1.a;  -- infinite loop
postgres=# SELECT * FROM t1 left JOIN t2 ON t2.c = t1.a; -- ok

Actual Behavior

Can not generate plan.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions