forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitd68e08d
committed
Allow the index name to be omitted in CREATE INDEX, causing the system to
choose an index name the same as it would do for an unnamed index constraint.(My recent changes to the index naming logic have helped to ensure that thiswill be a reasonable choice.) Per a suggestion from Peter.A necessary side-effect is to promote CONCURRENTLY to type_func_name_keywordstatus, ie, it can't be a table/column/index name anymore unless quoted.This is not all bad, since we have heard more than once of people typingCREATE INDEX CONCURRENTLY ON foo (...) and getting a normal index build ofan index named "concurrently", which was not what they wanted. Now thissyntax will result in a concurrent build of an index with system-chosenname; which they can rename afterwards if they want something else.1 parentc176e12 commitd68e08d
File tree
6 files changed
+38
-40
lines changed- doc/src/sgml
- ref
- src
- backend/parser
- include/parser
- test/regress
- expected
- sql
6 files changed
+38
-40
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 |
| - | |
| 1 | + | |
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| |||
921 | 921 |
| |
922 | 922 |
| |
923 | 923 |
| |
924 |
| - | |
| 924 | + | |
925 | 925 |
| |
926 | 926 |
| |
927 | 927 |
| |
|
Lines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
| 2 | + | |
3 | 3 |
| |
4 | 4 |
| |
5 | 5 |
| |
| |||
21 | 21 |
| |
22 | 22 |
| |
23 | 23 |
| |
24 |
| - | |
| 24 | + | |
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
| |||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
36 |
| - | |
37 |
| - | |
| 36 | + | |
| 37 | + | |
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
| |||
132 | 132 |
| |
133 | 133 |
| |
134 | 134 |
| |
135 |
| - | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
136 | 138 |
| |
137 | 139 |
| |
138 | 140 |
| |
| |||
514 | 516 |
| |
515 | 517 |
| |
516 | 518 |
| |
517 |
| - | |
| 519 | + | |
518 | 520 |
| |
| 521 | + | |
| 522 | + | |
519 | 523 |
| |
520 | 524 |
| |
521 | 525 |
| |
| |||
544 | 548 |
| |
545 | 549 |
| |
546 | 550 |
| |
547 |
| - | |
| 551 | + | |
548 | 552 |
| |
549 | 553 |
| |
550 | 554 |
| |
|
Lines changed: 18 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
253 | 253 |
| |
254 | 254 |
| |
255 | 255 |
| |
256 |
| - | |
| 256 | + | |
| 257 | + | |
257 | 258 |
| |
258 | 259 |
| |
259 | 260 |
| |
| |||
325 | 326 |
| |
326 | 327 |
| |
327 | 328 |
| |
328 |
| - | |
| 329 | + | |
329 | 330 |
| |
330 | 331 |
| |
331 | 332 |
| |
| |||
4822 | 4823 |
| |
4823 | 4824 |
| |
4824 | 4825 |
| |
4825 |
| - | |
4826 |
| - | |
4827 |
| - | |
4828 | 4826 |
| |
4829 | 4827 |
| |
4830 | 4828 |
| |
4831 | 4829 |
| |
4832 |
| - | |
4833 |
| - | |
4834 |
| - | |
4835 |
| - | |
4836 |
| - | |
4837 |
| - | |
4838 |
| - | |
4839 |
| - | |
4840 |
| - | |
4841 |
| - | |
4842 |
| - | |
4843 |
| - | |
4844 |
| - | |
4845 |
| - | |
4846 |
| - | |
4847 |
| - | |
4848 |
| - | |
| 4830 | + | |
4849 | 4831 |
| |
4850 | 4832 |
| |
4851 | 4833 |
| |
4852 | 4834 |
| |
4853 | 4835 |
| |
4854 |
| - | |
| 4836 | + | |
4855 | 4837 |
| |
4856 | 4838 |
| |
4857 | 4839 |
| |
| |||
4863 | 4845 |
| |
4864 | 4846 |
| |
4865 | 4847 |
| |
4866 |
| - | |
| 4848 | + | |
4867 | 4849 |
| |
4868 | 4850 |
| |
4869 | 4851 |
| |
4870 | 4852 |
| |
| 4853 | + | |
| 4854 | + | |
| 4855 | + | |
| 4856 | + | |
| 4857 | + | |
| 4858 | + | |
| 4859 | + | |
| 4860 | + | |
| 4861 | + | |
| 4862 | + | |
4871 | 4863 |
| |
4872 | 4864 |
| |
4873 | 4865 |
| |
| |||
10696 | 10688 |
| |
10697 | 10689 |
| |
10698 | 10690 |
| |
10699 |
| - | |
10700 | 10691 |
| |
10701 | 10692 |
| |
10702 | 10693 |
| |
| |||
10988 | 10979 |
| |
10989 | 10980 |
| |
10990 | 10981 |
| |
| 10982 | + | |
10991 | 10983 |
| |
10992 | 10984 |
| |
10993 | 10985 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
86 |
| - | |
| 86 | + | |
87 | 87 |
| |
88 | 88 |
| |
89 | 89 |
| |
|
Lines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
689 | 689 |
| |
690 | 690 |
| |
691 | 691 |
| |
692 |
| - | |
| 692 | + | |
| 693 | + | |
693 | 694 |
| |
694 | 695 |
| |
695 | 696 |
| |
| |||
711 | 712 |
| |
712 | 713 |
| |
713 | 714 |
| |
| 715 | + | |
714 | 716 |
| |
715 | 717 |
| |
716 | 718 |
| |
717 |
| - | |
718 | 719 |
| |
719 | 720 |
| |
720 | 721 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
300 | 300 |
| |
301 | 301 |
| |
302 | 302 |
| |
303 |
| - | |
| 303 | + | |
| 304 | + | |
304 | 305 |
| |
305 | 306 |
| |
306 | 307 |
| |
|
0 commit comments
Comments
(0)