summaryrefslogtreecommitdiff
path: root/src/backend/executor
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-12-23 12:53:13 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-12-23 12:53:13 -0500
commitea1205a02a030562e41353bc39fcf621e11b45c0 (patch)
treee164736aeaf327306650f3c6c27021f4185300d6 /src/backend/executor
parent4af2531d03930c1fa1aa7ffc9b7cda9e23d7c03a (diff)
Disallow partition key expressions that return pseudo-types.
This wasn't checked originally, but it should have been, because in general pseudo-types can't be stored to and retrieved from disk. Notably, partition bound values of type "record" would not be interpretable by another session. In v12 and HEAD, add another flag to CheckAttributeType's repertoire so that it can produce a specific error message for this case. That's infeasible in older branches without an ABI break, so fall back to a slightly-less-nicely-worded error message in v10 and v11. Problem noted by Amit Langote, though this patch is not his initial solution. Back-patch to v10 where partitioning was introduced. Discussion: https://postgr.es/m/CA+HiwqFUzjfj9HEsJtYWcr1SgQ_=iCAvQ=O2Sx6aQxoDu4OiHw@mail.gmail.com
Diffstat (limited to 'src/backend/executor')
0 files changed, 0 insertions, 0 deletions