forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commita710713
committed
Add checks to DefineQueryRewrite() to prohibit attaching rules to relations
that aren't RELKIND_RELATION or RELKIND_VIEW, and to disallow attaching rulesto system relations unless allowSystemTableMods is on. This is to make thebehavior of CREATE RULE more like CREATE TRIGGER, which disallows thecomparable cases. Per discussion of bug #4808.1 parent1958603 commita710713
1 file changed
+18
-1
lines changedLines changed: 18 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 |
| - | |
| 11 | + | |
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| 18 | + | |
18 | 19 |
| |
19 | 20 |
| |
20 | 21 |
| |
| |||
242 | 243 |
| |
243 | 244 |
| |
244 | 245 |
| |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
245 | 262 |
| |
246 | 263 |
| |
247 | 264 |
| |
|
0 commit comments
Comments
(0)