aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2022-05-09 14:15:37 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2022-05-09 14:15:37 -0400
commit90e52884edf75b86c2832e6094d30eb2987d23a2 (patch)
treefe10f29163ecb5699e47977b2e2aba6d9a9cece9 /src/backend/utils/adt/ruleutils.c
parent5045c795301d6332660053f0b4194adac03a6db5 (diff)
downloadpostgresql-90e52884edf75b86c2832e6094d30eb2987d23a2.tar.gz
postgresql-90e52884edf75b86c2832e6094d30eb2987d23a2.zip
Fix core dump in transformValuesClause when there are no columns.
The parser code that transformed VALUES from row-oriented to column-oriented lists failed if there were zero columns. You can't write that straightforwardly (though probably you should be able to), but the case can be reached by expanding a "tab.*" reference to a zero-column table. Per bug #17477 from Wang Ke. Back-patch to all supported branches. Discussion: https://postgr.es/m/17477-0af3c6ac6b0a6ae0@postgresql.org
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
0 files changed, 0 insertions, 0 deletions