Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2ITo-0006Tr-Ug for pgsql-hackers@arkaria.postgresql.org; Mon, 16 May 2016 13:22: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 1b2ITo-0007se-Gt for pgsql-hackers@arkaria.postgresql.org; Mon, 16 May 2016 13:22:40 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b2IST-0006Mp-21 for pgsql-hackers@postgresql.org; Mon, 16 May 2016 13:21:17 +0000 Received: from newmail.postgrespro.ru ([93.174.131.138] helo=mail.postgrespro.ru) by magus.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b2ISP-0000pc-FZ for pgsql-hackers@postgresql.org; Mon, 16 May 2016 13:21:16 +0000 Received: from localhost (localhost [127.0.0.1]) by mail.postgrespro.ru (Postfix) with ESMTP id 0A75621C8286 for ; Mon, 16 May 2016 16:21:13 +0300 (MSK) 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 4qJNsJ7BS3Xc for ; Mon, 16 May 2016 16:21:10 +0300 (MSK) Received: from nataraj-amd64.localnet (unknown [192.168.27.1]) by mail.postgrespro.ru (Postfix) with ESMTPSA id 46C5521C1768 for ; Mon, 16 May 2016 16:21:10 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=postgrespro.ru; s=mail; t=1463404870; bh=RX/c2iORElj7P/T9cY4+YNJhgl3IkCOdVIM8gjCDX6g=; h=From:To:Subject:Date; b=pkZM8MiywBZUBeUjI9GjZD2id3a7TXjbIBuZ+U2+027/l+ihCEW+wH8rF99hXxPkH oXeSQBDBy0+ZV2zXbKLbQ5vj60XA1/X05NO6UrjV29avc+iFk7dQwkGSweWaWFPpTU kaxF2M/oWZpWVmPbulJHnkfR0EOCvAFWEq9XHrWQ= From: Nikolay Shaplov To: pgsql-hackers@postgresql.org Subject: [PATCH][Documination] Add optional USING keyword before opclass name in INSERT statemet Date: Mon, 16 May 2016 16:21:10 +0300 Message-ID: <1593237.l7oKHRpxSe@nataraj-amd64> User-Agent: KMail/4.14.1 (Linux/3.16.0-4-amd64; KDE/4.14.2; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart2983866.j9zIf7VOZ0" Content-Transfer-Encoding: 7Bit X-Pg-Spam-Score: -1.9 (-) 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 This is a multi-part message in MIME format. --nextPart2983866.j9zIf7VOZ0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" If I read gram.y code for insert statement, I see that there is an optional USING keyword before opclass name opt_class: any_name { $$ = $1; } | USING any_name { $$ = $2; } | /*EMPTY*/ { $$ = NIL; } ; but it the documentation this keyword is omitted. I'd like to offer a patch that fixes this problem -- Nikolay Shaplov Postgres Professional: http://www.postgrespro.com Russian Postgres Company --nextPart2983866.j9zIf7VOZ0 Content-Disposition: attachment; filename="using_opclass_doc_patch.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="using_opclass_doc_patch.diff" diff --git a/doc/src/sgml/ref/create_index.sgml b/doc/src/sgml/ref/create_index.sgml index 7dee405..788bc3f 100644 --- a/doc/src/sgml/ref/create_index.sgml +++ b/doc/src/sgml/ref/create_index.sgml @@ -22,7 +22,7 @@ PostgreSQL documentation CREATE [ UNIQUE ] INDEX [ CONCURRENTLY ] [ [ IF NOT EXISTS ] name ] ON table_name [ USING method ] - ( { column_name | ( expression ) } [ COLLATE collation ] [ opclass ] [ ASC | DESC ] [ NULLS { FIRST | LAST } ] [, ...] ) + ( { column_name | ( expression ) } [ COLLATE collation ] [ [ USING ] opclass ] [ ASC | DESC ] [ NULLS { FIRST | LAST } ] [, ...] ) [ WITH ( storage_parameter = value [, ... ] ) ] [ TABLESPACE tablespace_name ] [ WHERE predicate ] --nextPart2983866.j9zIf7VOZ0 Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers --nextPart2983866.j9zIf7VOZ0--