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 1j6XHs-0000o0-P7 for pgsql-general@arkaria.postgresql.org; Tue, 25 Feb 2020 10:18:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j6XHq-0003KM-A2 for pgsql-general@arkaria.postgresql.org; Tue, 25 Feb 2020 10:17:58 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j6XHp-0003J8-Q7 for pgsql-general@lists.postgresql.org; Tue, 25 Feb 2020 10:17:58 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1j6XHj-0001ej-4C for pgsql-general@postgresql.org; Tue, 25 Feb 2020 10:17:56 +0000 Received: by mail-wr1-x434.google.com with SMTP id z3so14026389wru.3 for ; Tue, 25 Feb 2020 02:17:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=ZQYhIlhcmg8NXrzvWvCvzA/n2oHlqpdqIpJ3zwJfawQ=; b=MQADly0enbpWAOACl3gzGK9+glglYrAYgZdLrK68wvt1A8bmUMRLMerubc9aXbAH8w uN1eWjh72i72IQiaT+kBy10KZcvHFvIZiZWAH2SkPk5yyTeNvsxkTFmOKXHqMLx4kvjJ H4avB8Peg1n9VQ0h4enReDoUhWllZf/E3IIR9oFS7WK7UE+WouSvsvABX/hB/NpJlc+w QpZnagYmk169FJGPYSAsRPB1N5jdAm4JwlRVDihiKlBvlTcE/NTVLKzb4GGYUTgf0kuc WMpRwzLj1rNMOdfWoIXo1PtcO0ZnibjEEp/KIUD/zXjN5LxP6tqSCeBnaq6GDeR9dG4o cjPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=ZQYhIlhcmg8NXrzvWvCvzA/n2oHlqpdqIpJ3zwJfawQ=; b=PXehq0T90E5tXhO473JNOX+tAWPgtB0pOHxbByI9ZwbysKXaod0RmQJHhAdE9xi/CZ /q1FffxkCRRw8JHS+iuZyOBoBRUh+lgWoe8Nf2IGJaKzy0jfHwAKXMy80buGTpkuVoZz UlX7douW0lD+x0mU5kgBJ0qibUntXcPc42u29BTMiu+sTlIzZ6zt7Ango9n2OsnrheA8 G83UU87Ty8sq419c5iCBVzC9dXztVYL5vJjm4pECqIESiPHv6lYuee0Gz6jhUiqckbuF 5KG1z9SA82fWDUfekKajeNfIses70nmWJ8urPhayTmicAFPDdpDgM4ONWy5Q37xW1XDe JF2A== X-Gm-Message-State: APjAAAV6MyCENxVXK1ul+UOAnj0hb1d26YnQzXywGAqx1I9FQCPmOQj+ Ig9bSmv9eX/3p9+WsQShddtRpxtv49Y= X-Google-Smtp-Source: APXvYqyj3SjonKpvUIIRD3lS2BwJHPFiQjciBwXvGhHaD3j1LUs7D6hxlaZw4pGMFld93Htdz4GMhA== X-Received: by 2002:a5d:6051:: with SMTP id j17mr3367217wrt.238.1582625868992; Tue, 25 Feb 2020 02:17:48 -0800 (PST) Received: from debian-sm.sopsr.sk (static-dsl-1.213-160-174.telecom.sk. [213.160.174.1]) by smtp.gmail.com with ESMTPSA id g10sm11746941wrr.13.2020.02.25.02.17.48 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 25 Feb 2020 02:17:48 -0800 (PST) To: pgsql-general@postgresql.org From: =?UTF-8?Q?Stanislav_Moty=c4=8dka?= Subject: a proposal for a new functionality: "SELECT * [EXCEPT col1 [,col2]] Message-ID: Date: Tue, 25 Feb 2020 11:17:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------1E8F8327BB90A8C6B0E8E87F" Content-Language: sk-SK List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------1E8F8327BB90A8C6B0E8E87F Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Hello, Sometimes (for tables with many columns) it would be better and easier to write "SELECT" statement with clause "EXCEPT": "SELECT * [EXCEPT col1 [,col2]] FROM ..." It's easier to write "except" one or two columns from all (*) as to write names of all columns besides one or two. What do you thin about it? Best regards Stano Motycka --------------1E8F8327BB90A8C6B0E8E87F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit Hello,

Sometimes (for tables with many columns) it would be better and easier to write "SELECT" statement with clause "EXCEPT":
"SELECT * [EXCEPT col1 [,col2]] FROM ..."

It's easier to write "except" one or two columns from all (*) as to write names of all columns besides one or two.
What do you thin about it?

Best regards
Stano Motycka

--------------1E8F8327BB90A8C6B0E8E87F--