BUG #18307: system columns does not support using join

From: PG Bug reporting form <noreply(at)postgresql(dot)org>
To: pgsql-bugs(at)lists(dot)postgresql(dot)org
Cc: rekgrpth(at)gmail(dot)com
Subject: BUG #18307: system columns does not support using join
Date: 2024-01-24 04:49:25
Message-ID: 18307-16a12cbeb212d742@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

The following bug has been logged on the website:

Bug reference: 18307
Logged by: RekGRpth
Email address: rekgrpth(at)gmail(dot)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

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Michael Paquier 2024-01-24 06:12:53 Re: BUG #18297: Error when adding a column to a parent table with complex inheritance
Previous Message David G. Johnston 2024-01-23 23:51:52 v17 Possible Union All Bug