Re: BUG #19003: A SELECT that does not return a valid table

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: alexandrebailly1955(at)gmail(dot)com
Cc: pgsql-bugs(at)lists(dot)postgresql(dot)org
Subject: Re: BUG #19003: A SELECT that does not return a valid table
Date: 2025-07-30 21:34:41
Message-ID: 1675174.1753911281@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

PG Bug reporting form <noreply(at)postgresql(dot)org> writes:
> SELECT 'John' AS nom,'James' AS nom
> returns a table with attributes nom and nom that I can see in the output.
> Returning a table that contains twice the same column should not be
> permitted.

There is pretty much zero chance that we will enforce that
restriction. It would break too much application code.
Also, it looks to me like there is no such requirement in
the SQL standard.

regards, tom lane

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message David G. Johnston 2025-07-30 21:38:16 Re: BUG #19003: A SELECT that does not return a valid table
Previous Message Peter Geoghegan 2025-07-30 20:14:25 Re: Postgres: Queries are too slow after upgrading to PG17 from PG15