Re: Appetite for `SELECT ... EXCLUDE`?

From: Nikhil Benesch <nikhil(dot)benesch(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Appetite for `SELECT ... EXCLUDE`?
Date: 2022-11-18 20:29:25
Message-ID: CAPWqQZSa=Y3yK19eqB4Q2-CU5tkud1t5Z7O5RRT44fsf-NRkEQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Thanks for the pointers, Tom. Sorry my search didn't turn those up.

On Fri, Nov 18, 2022 at 3:18 PM Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>
> Nikhil Benesch <nikhil(dot)benesch(at)gmail(dot)com> writes:
> > Both DuckDB and Snowflake, as of recently, support a nonstandard `EXCLUDE`
> > clause in the SELECT list to allow excluding fields from a wildcard [0] [1].
>
> > Example from the DuckDB announcement [2]:
>
> > SELECT * EXCLUDE (jar_jar_binks, midichlorians) FROM star_wars
>
> > Is there any appetite for adding this feature to PostgreSQL?
>
> This has been discussed before and not gone anywhere, e.g. [1] [2].
> I think there have been more threads but that was all I found in a
> quick archive search. Anyway, as those threads illustrate, there is a
> lot of room for variation in how you spell it, where you can write it,
> and so on. My own inclination is to not do anything here until/unless
> the SQL committee standardizes something, because there's too much
> risk of finding ourselves incompatible with the standard.
>
> regards, tom lane
>
> [1] https://www.postgresql.org/message-id/flat/d51371a2-f221-1cf3-4a7d-b2242d4dafdb%40gmail.com
> [2] https://www.postgresql.org/message-id/flat/CANcm6wbR3EG7t-G%3DTxy64Yt8nR6YbpzFRuTewJQ%2BkCq%3DrZ8M2A%40mail.gmail.com

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter J. Holzer 2022-11-18 20:46:17 Lots of read activity on index only scan
Previous Message Tom Lane 2022-11-18 20:18:44 Re: Appetite for `SELECT ... EXCLUDE`?