pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Guyren Howe <guyren@gmail.com>
To: Paul A Jungwirth <pj@illuminatedcomputing.com>
Cc: Miles Elam <miles.elam@productops.com>
Cc: Josef Šimánek <josef.simanek@gmail.com>
Cc: Stanislav Motyčka <stanislav.motycka@gmail.com>
Cc: PG-General Mailing List <pgsql-general@postgresql.org>
Subject: Re: a proposal for a new functionality: "SELECT * [EXCEPT col1 [,col2]]
Date: Tue, 25 Feb 2020 11:39:09 -0800
Message-ID: <04749208-2BB9-4E4B-ADFF-464713C6D5CC@gmail.com> (raw)
In-Reply-To: <CA+renyWW_wjY7Qsis6fHJL_VQj=274aRD2Tb-k_QYe=aNwEing@mail.gmail.com>
References: <d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.com>
	<CAALojA9s5nkWezDJZMDj+EsDuwDzpexM0kV_gcP-MZhF00hYRw@mail.gmail.com>
	<CAFp7QwpCNq_wuXwaOOjvcaRjC3vVTQZrifbb3EHpPv9ZWiVz+w@mail.gmail.com>
	<CAALojA_ycJBcbp4hgbvO21HqX0_jnbRDnpa8fBEm2=GRn++Azw@mail.gmail.com>
	<CA+renyWW_wjY7Qsis6fHJL_VQj=274aRD2Tb-k_QYe=aNwEing@mail.gmail.com>



> On Feb 25, 2020, at 11:28 , Paul A Jungwirth <pj@illuminatedcomputing.com> wrote:
> 
> On Tue, Feb 25, 2020 at 2:18 AM Stanislav Motyčka
> <stanislav.motycka@gmail.com <mailto:stanislav.motycka@gmail.com>> wrote:
>> Sometimes (for tables with many columns) it would be better and easier to write "SELECT" statement with clause "EXCEPT":
>> "SELECT * [EXCEPT col1 [,col2]] FROM …"

The single biggest benefit is that I could write many more views that don’t need to be changed when I change the underlying table.

view thread (14+ messages)  latest in thread

Message-ID: <04749208-2BB9-4E4B-ADFF-464713C6D5CC@gmail.com>
Permalink:  ../04749208-2BB9-4E4B-ADFF-464713C6D5CC@gmail.com/
Also on:    postgresql.org/message-id/04749208-2BB9-4E4B-ADFF-464713C6D5CC@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: guyren@gmail.com, pj@illuminatedcomputing.com, miles.elam@productops.com, josef.simanek@gmail.com, stanislav.motycka@gmail.com
  Subject: Re: a proposal for a new functionality: "SELECT * [EXCEPT col1 [,col2]]
  In-Reply-To: <04749208-2BB9-4E4B-ADFF-464713C6D5CC@gmail.com>
  References: <d51371a2-f221-1cf3-4a7d-b2242d4dafdb@gmail.com> <CAALojA9s5nkWezDJZMDj+EsDuwDzpexM0kV_gcP-MZhF00hYRw@mail.gmail.com> <CAFp7QwpCNq_wuXwaOOjvcaRjC3vVTQZrifbb3EHpPv9ZWiVz+w@mail.gmail.com> <CAALojA_ycJBcbp4hgbvO21HqX0_jnbRDnpa8fBEm2=GRn++Azw@mail.gmail.com> <CA+renyWW_wjY7Qsis6fHJL_VQj=274aRD2Tb-k_QYe=aNwEing@mail.gmail.com> <04749208-2BB9-4E4B-ADFF-464713C6D5CC@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox