aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/tablecmds.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2021-10-19 11:35:15 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2021-10-19 11:35:15 -0400
commitf627fd547a34bb3ffba5763a1ab404c2777debe4 (patch)
treefb02259f1fab8f22478a43c1fd769acb7c7a66d5 /src/backend/commands/tablecmds.c
parent3e2f32b01d3b6868022c8381b28e8fc5399baeb9 (diff)
downloadpostgresql-f627fd547a34bb3ffba5763a1ab404c2777debe4.tar.gz
postgresql-f627fd547a34bb3ffba5763a1ab404c2777debe4.zip
Remove bogus assertion in transformExpressionList().
I think when I added this assertion (in commit 8f889b108), I was only thinking of the use of transformExpressionList at top level of INSERT and VALUES. But it's also called by transformRowExpr(), which can certainly occur in an UPDATE targetlist, so it's inappropriate to suppose that p_multiassign_exprs must be empty. Besides, since the input is not expected to contain ResTargets, there's no reason it should contain MultiAssignRefs either. Hence this code need not be concerned about the state of p_multiassign_exprs, and we should just drop the assertion. Per bug #17236 from ocean_li_996. It's been wrong for years, so back-patch to all supported branches. Discussion: https://postgr.es/m/17236-3210de9bcba1d7ca@postgresql.org
Diffstat (limited to 'src/backend/commands/tablecmds.c')
0 files changed, 0 insertions, 0 deletions