Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5wL3-00008U-7g for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:32:41 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b5wL2-0000NS-Iy for pgsql-hackers@arkaria.postgresql.org; Thu, 26 May 2016 14:32:40 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b5wJg-0005pA-4X for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:31:16 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by makus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b5wJc-0004NU-TC for pgsql-hackers@postgresql.org; Thu, 26 May 2016 14:31:14 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id E190D21C8872; Thu, 26 May 2016 17:31:10 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at postgrespro.ru Received: from mail.postgrespro.ru ([127.0.0.1]) by localhost (mail.postgrespro.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RdJO-jg03Tgs; Thu, 26 May 2016 17:31:09 +0300 (MSK) Received: from nataraj-amd64.localnet (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id E50CC21C8869; Thu, 26 May 2016 17:31:08 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1464273068; bh=OcLa1EYRNTBwmoK6zWaIKoAXhTaCPcta9SGkfJTiTgU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=BNG2FGNK9fGmrABgy8vKjHWSCdbfv/anKmApMTTFPBjpNuYsp3V7UTefBifNQRAP4 PYJkX8i9cfXFaIc6KgPP3AH4NCRorwvUbTs0/xON/wjqhfjLYBln6OVogUyqRhy5wk kL5+nKWtHRQb2oZqEDiKsH6uJoPvMCtxJbtDtchQ= From: Nikolay Shaplov To: Tom Lane 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> User-Agent: KMail/4.14.1 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) In-Reply-To: <26587.1464271556@sss.pgh.pa.us> References: <1593237.l7oKHRpxSe@nataraj-amd64> <1868585.jcgsxskSny@nataraj-amd64> <26587.1464271556@sss.pgh.pa.us> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Pg-Spam-Score: -3.4 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-hackers Precedence: bulk Sender: pgsql-hackers-owner@postgresql.org =D0=92 =D0=BF=D0=B8=D1=81=D1=8C=D0=BC=D0=B5 =D0=BE=D1=82 26 =D0=BC=D0=B0=D1= =8F 2016 10:05:56 =D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D0= =B5=D0=BB=D1=8C Tom Lane =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BB: > > 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); >=20 > 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=20 mention it in the docs. It seems logical to me.=20 // Actually I did not expected any discussion for this case. Documentations= =20 missed an optional keyword, documentation should be fixed. I am surprised t= hat=20 there can be any other opinions ;-) --=20 Nikolay Shaplov Postgres Professional: http://www.postgrespro.com Russian Postgres Company --=20 Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers