Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1j6g3M-0000hs-Ru for pgsql-general@arkaria.postgresql.org; Tue, 25 Feb 2020 19:39:37 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6g3L-0005s2-Gk for pgsql-general@arkaria.postgresql.org; Tue, 25 Feb 2020 19:39:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6g3L-0005rv-6g for pgsql-general@lists.postgresql.org; Tue, 25 Feb 2020 19:39:35 +0000 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j6g3E-0007kQ-BC for pgsql-general@postgresql.org; Tue, 25 Feb 2020 19:39:34 +0000 Received: by mail-pj1-x102a.google.com with SMTP id r67so162838pjb.0 for ; Tue, 25 Feb 2020 11:39:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc:message-id:references :to; bh=7EPDZwbA/iOxJrVBhhIdtHzPUByy8aGn3CVLZ07F9jA=; b=sQxIxMt7x9jAE/gPDimPfJEpRoy/fh4EscKoUwfrKz/33KPGuorLUbe0XJ4D4geED3 f4vgzgDevA3TbKQdikwITlnN9IO6CWqXdeV5wafhLY9eayF9KesILGN9vXC+LqphU2Vg KDbCH9VMaWF6q8OjbKOumttDuRedScAZ6DFI1ejMu8kFBA/xB3yDQupfS+D00lPN+tTS AjGB3LstF7FfNwqsL6K0lrK+9snUgYKbLkGE4njLXuhLUFg1tA71iHTP6mp1+MBp8Hg3 YOOPk7QLiEWPt8F/twU2dAg+VaGGclZew/psirhQOj1bU0kmolHquqTW2Svux8n4yhPs TOUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to; bh=7EPDZwbA/iOxJrVBhhIdtHzPUByy8aGn3CVLZ07F9jA=; b=ipmX8JINAKiBzUeV7fLLHtdxjI0i7pxTWdar4o8TKmA68+4UhguT6+iwELe7CU6oiS YwXPAje5Z6Gszee6oWDfSuDNcrZA0MMWpz2BA5JBWBeYgF2wqsgdHzoNg2NICzEX57W7 B0UFtcE0iq1x9snhYciNxrj5cTtCx6m5M1p/vgsLiFZnhAZNDnKMfl5f5v3MMft0VRyx JKtt9B6q0WfrxC2j6EwU0h1GhuIGnZ4avBD5QxESj8D4/bc7RkkXXj4xA4r6saVyb9zP rGjZM3arzgFPvJNOeVqrvTrUU/II7jnoYFoNqh1zgJHksGeCzy+ygY7yrKmlXiIsmQX3 uNnA== X-Gm-Message-State: APjAAAUffqilKOQACWJhKRq0zEr4FqKP+VaxK2l/5q2WJ1d8JBk4nbQK 8wn1JdmooqgcjcGqPV3O2sI= X-Google-Smtp-Source: APXvYqw65I76uVEi9mmuPHb9IErVu+OVgJ4NbnK6iNN1Sg3iPEVpgG7fbvHidoWd3u4/yMN/wzTx9A== X-Received: by 2002:a17:902:b7ca:: with SMTP id v10mr107030plz.308.1582659566292; Tue, 25 Feb 2020 11:39:26 -0800 (PST) Received: from ?IPv6:2600:8801:8800:195::1a? ([2600:8801:8800:195::1a]) by smtp.gmail.com with ESMTPSA id 7sm18913933pfc.21.2020.02.25.11.39.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Feb 2020 11:39:25 -0800 (PST) Content-Type: multipart/alternative; boundary="Apple-Mail=_44092050-3969-4190-9A47-C3B487368DBD" Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3608.60.0.2.5\)) Subject: Re: a proposal for a new functionality: "SELECT * [EXCEPT col1 [,col2]] From: Guyren Howe In-Reply-To: Date: Tue, 25 Feb 2020 11:39:09 -0800 Cc: Miles Elam , =?utf-8?B?Sm9zZWYgxaBpbcOhbmVr?= , =?utf-8?Q?Stanislav_Moty=C4=8Dka?= , PG-General Mailing List X-Mailbutler-Message-Id: 6140B6BB-8C04-4346-890B-E1DDDE820EDB Message-Id: <04749208-2BB9-4E4B-ADFF-464713C6D5CC@gmail.com> References: To: Paul A Jungwirth X-Mailer: Apple Mail (2.3608.60.0.2.5) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --Apple-Mail=_44092050-3969-4190-9A47-C3B487368DBD Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Feb 25, 2020, at 11:28 , Paul A Jungwirth = wrote: >=20 > On Tue, Feb 25, 2020 at 2:18 AM Stanislav Moty=C4=8Dka > > = 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 =E2=80=A6" The single biggest benefit is that I could write many more views that = don=E2=80=99t need to be changed when I change the underlying table. --Apple-Mail=_44092050-3969-4190-9A47-C3B487368DBD Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8

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=C4=8Dka
<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 = =E2=80=A6"

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



3D""= --Apple-Mail=_44092050-3969-4190-9A47-C3B487368DBD--