Commit 4cf9242
committed
[yugabyte#8323] YSQL: Add support for USING INDEX TABLESPACE
Summary:
Added support for the "USING INDEX TABLESPACE" clause. This will
allow setting tablespace for unique indexes. However, since the primary
key index is an intrinsic part of the table itself, it cannot have
a separate tablespace (it should have the same tablespace as that of
the table). Thus we throw a syntax error if there is an attempt to set
tablespace for a primary key index using the "USING INDEX TABLESPACE"
clause.
Test Plan:
ybd --scb --sj --java-test org.yb.pgsql.TestTablespaceProperties
ybd --scb --sj --java-test org.yb.pgsql.TestPgRegressTablespaces
Reviewers: mihnea
Reviewed By: mihnea
Subscribers: yql
Differential Revision: https://phabricator.dev.yugabyte.com/D115331 parent 7afd17f commit 4cf9242
File tree
4 files changed
+58
-13
lines changed- java/yb-pgsql/src/test/java/org/yb/pgsql
- src/postgres/src
- backend/parser
- test/regress
- expected
- sql
4 files changed
+58
-13
lines changedLines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
| 116 | + | |
116 | 117 | | |
117 | 118 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 119 | | |
122 | 120 | | |
123 | 121 | | |
| |||
510 | 508 | | |
511 | 509 | | |
512 | 510 | | |
513 | | - | |
| 511 | + | |
514 | 512 | | |
515 | 513 | | |
516 | 514 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3777 | 3777 | | |
3778 | 3778 | | |
3779 | 3779 | | |
| 3780 | + | |
| 3781 | + | |
| 3782 | + | |
| 3783 | + | |
| 3784 | + | |
| 3785 | + | |
3780 | 3786 | | |
3781 | 3787 | | |
3782 | 3788 | | |
| |||
4031 | 4037 | | |
4032 | 4038 | | |
4033 | 4039 | | |
| 4040 | + | |
| 4041 | + | |
| 4042 | + | |
| 4043 | + | |
| 4044 | + | |
| 4045 | + | |
4034 | 4046 | | |
4035 | 4047 | | |
4036 | 4048 | | |
| |||
4313 | 4325 | | |
4314 | 4326 | | |
4315 | 4327 | | |
4316 | | - | |
4317 | 4328 | | |
4318 | 4329 | | |
4319 | 4330 | | |
| |||
Lines changed: 32 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
167 | 193 | | |
168 | 194 | | |
169 | 195 | | |
| |||
405 | 431 | | |
406 | 432 | | |
407 | 433 | | |
408 | | - | |
| 434 | + | |
409 | 435 | | |
410 | 436 | | |
411 | 437 | | |
| |||
418 | 444 | | |
419 | 445 | | |
420 | 446 | | |
421 | | - | |
| 447 | + | |
422 | 448 | | |
423 | 449 | | |
424 | 450 | | |
425 | 451 | | |
426 | 452 | | |
427 | 453 | | |
428 | 454 | | |
429 | | - | |
| 455 | + | |
430 | 456 | | |
431 | 457 | | |
432 | 458 | | |
| |||
435 | 461 | | |
436 | 462 | | |
437 | 463 | | |
438 | | - | |
| 464 | + | |
439 | 465 | | |
440 | 466 | | |
441 | 467 | | |
442 | 468 | | |
443 | 469 | | |
444 | 470 | | |
445 | 471 | | |
446 | | - | |
| 472 | + | |
447 | 473 | | |
448 | 474 | | |
449 | 475 | | |
| |||
454 | 480 | | |
455 | 481 | | |
456 | 482 | | |
457 | | - | |
| 483 | + | |
458 | 484 | | |
459 | 485 | | |
460 | 486 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
102 | 112 | | |
103 | 113 | | |
104 | 114 | | |
| |||
213 | 223 | | |
214 | 224 | | |
215 | 225 | | |
216 | | - | |
| 226 | + | |
217 | 227 | | |
218 | 228 | | |
219 | 229 | | |
| |||
0 commit comments