- Notifications
You must be signed in to change notification settings - Fork28
Commitb1af4bc
committed
Remove undocumented restriction against duplicate partition key columns.
transformPartitionSpec rejected duplicate simple partition columns(e.g., "PARTITION BY RANGE (x,x)") but paid no attention to expressioncolumns, resulting in inconsistent behavior. Worse, cases like"PARTITION BY RANGE (x,(x))") were accepted but would then result indump/reload failures, since the expression (x) would get simplifiedto a plain column later.There seems no better reason for this restriction than there was forthe one against duplicate included index columns (cf commit701fd0b),so let's just remove it.Back-patch to v10 where this code was added.Report and patch by Yugo Nagata.Discussion:https://postgr.es/m/20180712165939.36b12aff.nagata@sraoss.co.jp1 parentf4a5ce3 commitb1af4bc
File tree
3 files changed
+0
-25
lines changed- src
- backend/commands
- test/regress
- expected
- sql
3 files changed
+0
-25
lines changedLines changed: 0 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13628 | 13628 |
| |
13629 | 13629 |
| |
13630 | 13630 |
| |
13631 |
| - | |
13632 |
| - | |
13633 |
| - | |
13634 |
| - | |
13635 |
| - | |
13636 |
| - | |
13637 |
| - | |
13638 |
| - | |
13639 |
| - | |
13640 |
| - | |
13641 |
| - | |
13642 |
| - | |
13643 |
| - | |
13644 |
| - | |
13645 |
| - | |
13646 | 13631 |
| |
13647 | 13632 |
| |
13648 | 13633 |
| |
|
Lines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
288 | 288 |
| |
289 | 289 |
| |
290 | 290 |
| |
291 |
| - | |
292 |
| - | |
293 |
| - | |
294 |
| - | |
295 |
| - | |
296 | 291 |
| |
297 | 292 |
| |
298 | 293 |
| |
|
Lines changed: 0 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
303 | 303 |
| |
304 | 304 |
| |
305 | 305 |
| |
306 |
| - | |
307 |
| - | |
308 |
| - | |
309 |
| - | |
310 |
| - | |
311 | 306 |
| |
312 | 307 |
| |
313 | 308 |
| |
|
0 commit comments
Comments
(0)