aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/gin
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2018-07-19 15:41:46 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2018-07-19 15:41:46 -0400
commitb1af4bcc42f7e95abb9e8bceb894e0ef2acfc55a (patch)
tree0b6cf05a94e926f8c7ed5fb698ce8658c955e736 /src/backend/access/gin
parentf4a5ce359587257c6d14b8e746889077c649439a (diff)
downloadpostgresql-b1af4bcc42f7e95abb9e8bceb894e0ef2acfc55a.tar.gz
postgresql-b1af4bcc42f7e95abb9e8bceb894e0ef2acfc55a.zip
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 expression columns, resulting in inconsistent behavior. Worse, cases like "PARTITION BY RANGE (x,(x))") were accepted but would then result in dump/reload failures, since the expression (x) would get simplified to a plain column later. There seems no better reason for this restriction than there was for the one against duplicate included index columns (cf commit 701fd0bbc), 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.jp
Diffstat (limited to 'src/backend/access/gin')
0 files changed, 0 insertions, 0 deletions