aboutsummaryrefslogtreecommitdiff
path: root/src/backend/access/transam/xlog.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2019-12-17 17:44:28 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2019-12-17 17:44:28 -0500
commitfc449abc3dccc06b01783bcdb2c348c8ef670ccd (patch)
tree27182fab73208bb74378182af2cc6e9ec9f96788 /src/backend/access/transam/xlog.c
parentfc68a10b573faababd3a7d2b3f1f703a8ae76a44 (diff)
downloadpostgresql-fc449abc3dccc06b01783bcdb2c348c8ef670ccd.tar.gz
postgresql-fc449abc3dccc06b01783bcdb2c348c8ef670ccd.zip
Fix error reporting for index expressions of prohibited types.
If CheckAttributeType() threw an error about the datatype of an index expression column, it would report an empty column name, which is pretty unhelpful and certainly not the intended behavior. I (tgl) evidently broke this in commit cfc5008a5, by not noticing that the column's attname was used above where I'd placed the assignment of it. In HEAD and v12, this is trivially fixable by moving up the assignment of attname. Before v12 the code is a bit more messy; to avoid doing substantial refactoring, I took the lazy way out and just put in two copies of the assignment code. Report and patch by Amit Langote. Back-patch to all supported branches. Discussion: https://postgr.es/m/CA+HiwqFA+BGyBFimjiYXXMa2Hc3fcL0+OJOyzUNjhU4NCa_XXw@mail.gmail.com
Diffstat (limited to 'src/backend/access/transam/xlog.c')
0 files changed, 0 insertions, 0 deletions