forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commite1339bf
committed
Remove special checks for pg_rewrite.ev_qual and ev_action being NULL.
make_ruledef() and make_viewdef() were coded to cope with possiblenull-ness of these columns, but they've been marked BKI_FORCE_NOT_NULLfor some time. So there's not really any need to do more than whatwe do for the other columns of pg_rewrite, i.e. just Assert thatwe got non-null results.(There is a school of thought that says Asserts aren't the thingto do to check for corrupt data, but surely here is not the placeto start if we want such a policy.)Also, remove long-dead-if-indeed-it-ever-wasn't-dead handling ofan empty actions list in make_ruledef(). That's an error caseand should be treated as such. (DO INSTEAD NOTHING is representedby a CMD_NOTHING Query, not an empty list; cf transformRuleStmt.)Kyotaro Horiguchi, some changes by meDiscussion:https://postgr.es/m/CAEudQApoA=tMTic6xEPYP_hsNZ8XtToVThK_0x7D_aFQYowq3w@mail.gmail.com1 parent8e1f37c commite1339bf
1 file changed
+11
-15
lines changedLines changed: 11 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4733 | 4733 |
| |
4734 | 4734 |
| |
4735 | 4735 |
| |
4736 |
| - | |
| 4736 | + | |
4737 | 4737 |
| |
4738 | 4738 |
| |
4739 | 4739 |
| |
| |||
4763 | 4763 |
| |
4764 | 4764 |
| |
4765 | 4765 |
| |
4766 |
| - | |
4767 | 4766 |
| |
4768 | 4767 |
| |
| 4768 | + | |
4769 | 4769 |
| |
4770 | 4770 |
| |
4771 | 4771 |
| |
4772 |
| - | |
4773 |
| - | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
4774 | 4776 |
| |
4775 | 4777 |
| |
4776 | 4778 |
| |
| |||
4820 | 4822 |
| |
4821 | 4823 |
| |
4822 | 4824 |
| |
4823 |
| - | |
4824 |
| - | |
4825 |
| - | |
| 4825 | + | |
4826 | 4826 |
| |
4827 | 4827 |
| |
4828 | 4828 |
| |
| |||
4893 | 4893 |
| |
4894 | 4894 |
| |
4895 | 4895 |
| |
4896 |
| - | |
4897 |
| - | |
4898 |
| - | |
4899 |
| - | |
4900 | 4896 |
| |
4901 | 4897 |
| |
4902 | 4898 |
| |
| |||
4926 | 4922 |
| |
4927 | 4923 |
| |
4928 | 4924 |
| |
4929 |
| - | |
| 4925 | + | |
4930 | 4926 |
| |
4931 | 4927 |
| |
4932 | 4928 |
| |
| |||
4950 | 4946 |
| |
4951 | 4947 |
| |
4952 | 4948 |
| |
4953 |
| - | |
4954 | 4949 |
| |
4955 | 4950 |
| |
| 4951 | + | |
4956 | 4952 |
| |
4957 | 4953 |
| |
4958 | 4954 |
| |
4959 |
| - | |
4960 |
| - | |
| 4955 | + | |
| 4956 | + | |
4961 | 4957 |
| |
4962 | 4958 |
| |
4963 | 4959 |
| |
|
0 commit comments
Comments
(0)