BUG #18307: system columns does not support using join - Mailing list pgsql-bugs

From PG Bug reporting form
Subject BUG #18307: system columns does not support using join
Date
Msg-id 18307-16a12cbeb212d742@postgresql.org
Whole thread Raw
Responses Re: BUG #18307: system columns does not support using join  ("David G. Johnston" <david.g.johnston@gmail.com>)
List pgsql-bugs
The following bug has been logged on the website:

Bug reference:      18307
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: 16.1
Operating system:   docker alpine
Description:

create table t(i int);

explain (costs off) select * from t join t tt on t.xmin = tt.xmin;
           QUERY PLAN            
---------------------------------
 Hash Join
   Hash Cond: (t.xmin = tt.xmin)
   ->  Seq Scan on t
   ->  Hash
         ->  Seq Scan on t tt
(5 rows)

explain (costs off) select * from t join t tt using (xmin);
ERROR:  column "xmin" specified in USING clause does not exist in left table


pgsql-bugs by date:

Previous
From: "David G. Johnston"
Date:
Subject: v17 Possible Union All Bug
Next
From: Michael Paquier
Date:
Subject: Re: BUG #18297: Error when adding a column to a parent table with complex inheritance