summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2016-05-25 19:11:00 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2016-05-25 19:11:00 -0400
commitb898eb63678d96482c1519c44f8ead073adf9bb7 (patch)
treee5ffa2ec39906cec6ada80c491b8182fee9c3346 /src/backend
parent52e8fc3e2e66446e5705904cf7d884d5d669591f (diff)
downloadpostgresql-b898eb63678d96482c1519c44f8ead073adf9bb7.tar.gz
Remove option to write USING before opclass name in CREATE INDEX.
Dating back to commit f10b63923, our grammar has allowed "USING" to optionally appear before an opclass name in CREATE INDEX (and, lately, some related places such as ON CONFLICT specifications). Nikolay Shaplov noticed that this syntax existed but wasn't documented, and proposed documenting it. But what seems like a better idea is to remove the production, thereby making the code match the docs not vice versa. This isn't our usual modus operandi for such cases, but there are a couple of good reasons to proceed this way: * So far as I can find, this syntax has never been documented anywhere. It isn't relied on by any of our own code or test cases, and there seems little reason to suppose that it's been used in the wild either. * Documenting it would mean that there would be two separate uses of USING in the CREATE INDEX syntax, the other being "USING access_method". That can lead to nothing but confusion. So, let's just remove it. On the off chance that somebody somewhere is using it, this isn't something to back-patch, but we can fix it in HEAD. Discussion: <1593237.l7oKHRpxSe@nataraj-amd64>
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/parser/gram.y1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/backend/parser/gram.y b/src/backend/parser/gram.y
index 18ec5f03d8..20384db2fb 100644
--- a/src/backend/parser/gram.y
+++ b/src/backend/parser/gram.y
@@ -6747,7 +6747,6 @@ opt_collate: COLLATE any_name { $$ = $2; }
;
opt_class: any_name { $$ = $1; }
- | USING any_name { $$ = $2; }
| /*EMPTY*/ { $$ = NIL; }
;