From: Nikolay Shaplov <n.shaplov@postgrespro.ru>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: pgsql-hackers@postgresql.org
Subject: Re: [PATCH][Documination] Add optional USING keyword before opclass name in INSERT statemet
Date: Thu, 26 May 2016 17:31:08 +0300
Message-ID: <19790753.RVirIc6jbg@nataraj-amd64> (raw)
In-Reply-To: <26587.1464271556@sss.pgh.pa.us>
References: <1593237.l7oKHRpxSe@nataraj-amd64>
<1868585.jcgsxskSny@nataraj-amd64>
<26587.1464271556@sss.pgh.pa.us>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-hackers>
В письме от 26 мая 2016 10:05:56 пользователь Tom Lane написал:
> > 2. I think expression with USING in it is more human readable:
> > CREATE INDEX (xxx op_yyy);
> > is less sensible then
> > CREATE INDEX (xxx USING op_yyy);
>
> Yes. If we were working in a green field, it would have been better to
> make USING (or some other reserved word) required, not optional, there.
> That would have been better for readability and would have avoided some
> syntactic headaches, such as the need to parenthesize the expressions in
> expression indexes. However, we're about 18 years too late to make that
> decision. Opclass with no introductory keyword is the entrenched standard
> at this point, and we're never going to be able to remove it.
No, but we cat keep "USING" as an optional keyword there as it were, just
mention it in the docs. It seems logical to me.
// Actually I did not expected any discussion for this case. Documentations
missed an optional keyword, documentation should be fixed. I am surprised that
there can be any other opinions ;-)
--
Nikolay Shaplov
Postgres Professional: http://www.postgrespro.com
Russian Postgres Company
--
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
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-hackers@postgresql.org
Cc: n.shaplov@postgrespro.ru, tgl@sss.pgh.pa.us
Subject: Re: [PATCH][Documination] Add optional USING keyword before opclass name in INSERT statemet
In-Reply-To: <19790753.RVirIc6jbg@nataraj-amd64>
References: <1593237.l7oKHRpxSe@nataraj-amd64> <1868585.jcgsxskSny@nataraj-amd64> <26587.1464271556@sss.pgh.pa.us> <19790753.RVirIc6jbg@nataraj-amd64>
* 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