forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitb6423e9
committed
Doc: fix ancient mistake, or at least obsolete info, in rules example.
The example of expansion of multiple views claimed that the resultingsubquery nest would not get fully flattened because of an aggregatefunction. There's no aggregate in the example, though, only a userdefined function confusingly named MIN(). In a modern server, thereason for the non-flattening is that MIN() is volatile, but I'munsure whether that was true back when this text was written.Let's reduce the confusion level by using LEAST() instead (whichwe didn't have at the time this example was created). And thenwe can just say that the planner will flatten the sub-queries, sothe rewrite system doesn't have to.Noted by Paul Jungwirth. This text is old enough to vote, soback-patch to all supported branches.Discussion:https://postgr.es/m/CA+renyXZFnmp9PcvX1EVR2dR=XG5e6E-AELr8AHCNZ8RYrpnPw@mail.gmail.com1 parent13e8b2e commitb6423e9
1 file changed
+8
-24
lines changedLines changed: 8 additions & 24 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
344 |
| - | |
345 |
| - | |
346 |
| - | |
347 |
| - | |
348 |
| - | |
349 |
| - | |
350 |
| - | |
351 |
| - | |
352 |
| - | |
353 |
| - | |
354 |
| - | |
355 | 344 |
| |
356 | 345 |
| |
357 | 346 |
| |
| |||
414 | 403 |
| |
415 | 404 |
| |
416 | 405 |
| |
417 |
| - | |
| 406 | + | |
418 | 407 |
| |
419 | 408 |
| |
420 | 409 |
| |
| |||
593 | 582 |
| |
594 | 583 |
| |
595 | 584 |
| |
596 |
| - | |
| 585 | + | |
597 | 586 |
| |
598 | 587 |
| |
599 | 588 |
| |
| |||
613 | 602 |
| |
614 | 603 |
| |
615 | 604 |
| |
616 |
| - | |
| 605 | + | |
617 | 606 |
| |
618 | 607 |
| |
619 | 608 |
| |
| |||
640 | 629 |
| |
641 | 630 |
| |
642 | 631 |
| |
643 |
| - | |
644 |
| - | |
645 |
| - | |
646 |
| - | |
647 |
| - | |
648 |
| - | |
649 |
| - | |
650 |
| - | |
651 |
| - | |
652 |
| - | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
653 | 637 |
| |
654 | 638 |
| |
655 | 639 |
| |
|
0 commit comments
Comments
(0)