forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcab5dc5
committed
Allow only some columns of a view to be auto-updateable.
Previously, unless all columns were auto-updateable, we wouldn'tinserts, updates, or deletes, or at least not without a rule or trigger;now, we'll allow inserts and updates that target only the auto-updateablecolumns, and deletes even if there are no auto-updateable columns atall provided the view definition is otherwise suitable.Dean Rasheed, reviewed by Marko Tiikkaja1 parent523beaa commitcab5dc5
File tree
8 files changed
+701
-178
lines changed- doc/src/sgml/ref
- src
- backend
- commands
- rewrite
- utils/adt
- include/rewrite
- test/regress
- expected
- sql
8 files changed
+701
-178
lines changedLines changed: 29 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
322 |
| - | |
323 |
| - | |
324 |
| - | |
325 |
| - | |
326 |
| - | |
327 |
| - | |
328 |
| - | |
329 |
| - | |
330 |
| - | |
331 |
| - | |
| 322 | + | |
| 323 | + | |
332 | 324 |
| |
333 | 325 |
| |
334 | 326 |
| |
| |||
340 | 332 |
| |
341 | 333 |
| |
342 | 334 |
| |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
343 | 343 |
| |
344 | 344 |
| |
345 | 345 |
| |
| |||
434 | 434 |
| |
435 | 435 |
| |
436 | 436 |
| |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
437 | 456 |
| |
438 | 457 |
| |
439 | 458 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
8806 | 8806 |
| |
8807 | 8807 |
| |
8808 | 8808 |
| |
8809 |
| - | |
| 8809 | + | |
| 8810 | + | |
8810 | 8811 |
| |
8811 | 8812 |
| |
8812 | 8813 |
| |
|
Lines changed: 1 addition & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
469 | 469 |
| |
470 | 470 |
| |
471 | 471 |
| |
472 |
| - | |
| 472 | + | |
473 | 473 |
| |
474 | 474 |
| |
475 | 475 |
| |
|
0 commit comments
Comments
(0)