aboutsummaryrefslogtreecommitdiff
path: root/src/backend/executor/execParallel.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-11-02 14:34:34 -0500
committerTom Lane <tgl@sss.pgh.pa.us>2020-11-02 14:34:34 -0500
commite1339bfc7a2fd4629e1c3f8f919ddd05b4745e13 (patch)
tree06a824407f287a5efeafca2d8b6de6d38be462fb /src/backend/executor/execParallel.c
parent8e1f37c07aafd4bb7aa6e1e1982010af11f8b5c7 (diff)
downloadpostgresql-e1339bfc7a2fd4629e1c3f8f919ddd05b4745e13.tar.gz
postgresql-e1339bfc7a2fd4629e1c3f8f919ddd05b4745e13.zip
Remove special checks for pg_rewrite.ev_qual and ev_action being NULL.
make_ruledef() and make_viewdef() were coded to cope with possible null-ness of these columns, but they've been marked BKI_FORCE_NOT_NULL for some time. So there's not really any need to do more than what we do for the other columns of pg_rewrite, i.e. just Assert that we got non-null results. (There is a school of thought that says Asserts aren't the thing to do to check for corrupt data, but surely here is not the place to start if we want such a policy.) Also, remove long-dead-if-indeed-it-ever-wasn't-dead handling of an empty actions list in make_ruledef(). That's an error case and should be treated as such. (DO INSTEAD NOTHING is represented by a CMD_NOTHING Query, not an empty list; cf transformRuleStmt.) Kyotaro Horiguchi, some changes by me Discussion: https://postgr.es/m/CAEudQApoA=tMTic6xEPYP_hsNZ8XtToVThK_0x7D_aFQYowq3w@mail.gmail.com
Diffstat (limited to 'src/backend/executor/execParallel.c')
0 files changed, 0 insertions, 0 deletions