forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit375aed3

Keep stats up to date for partitioned tables
In the long-going saga for analyze on partitioned tables, one thing Imissed while reverting0827e8a is the maintenance of analyze countand last analyze time for partitioned tables. This is a mostly trivialchange that enables users assess the need for invoking manual ANALYZE onpartitioned tables.This patch, posted by Justin and modified a bit by me (Álvaro), can bemostly traced back to Hosoya-san, though any problems introduced withthe scissors are mine.Backpatch to 14, in line with6f8127b.Co-authored-by: Yuzuko Hosoya <yuzukohosoya@gmail.com>Co-authored-by: Justin Pryzby <pryzby@telsasoft.com>Co-authored-by: Álvaro Herrera <alvherre@alvh.no-ip.org>Reported-by: Justin Pryzby <pryzby@telsasoft.com>Discussion:https://postgr.es/m/20210816222810.GE10479@telsasoft.com1 parent1f092a3 commit375aed3
2 files changed
+33
-15
lines changedLines changed: 25 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
626 | 626 |
| |
627 | 627 |
| |
628 | 628 |
| |
629 |
| - | |
630 |
| - | |
| 629 | + | |
| 630 | + | |
631 | 631 |
| |
632 | 632 |
| |
633 | 633 |
| |
| |||
668 | 668 |
| |
669 | 669 |
| |
670 | 670 |
| |
671 |
| - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
672 | 674 |
| |
673 |
| - | |
674 |
| - | |
675 |
| - | |
676 |
| - | |
677 |
| - | |
678 |
| - | |
679 |
| - | |
680 |
| - | |
| 675 | + | |
| 676 | + | |
681 | 677 |
| |
| 678 | + | |
| 679 | + | |
| 680 | + | |
| 681 | + | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
| 686 | + | |
| 687 | + | |
| 688 | + | |
| 689 | + | |
| 690 | + | |
| 691 | + | |
| 692 | + | |
| 693 | + | |
682 | 694 |
| |
683 | 695 |
| |
684 |
| - | |
| 696 | + | |
| 697 | + | |
685 | 698 |
| |
686 | 699 |
| |
687 | 700 |
| |
|
Lines changed: 8 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1632 | 1632 |
| |
1633 | 1633 |
| |
1634 | 1634 |
| |
| 1635 | + | |
| 1636 | + | |
1635 | 1637 |
| |
1636 |
| - | |
| 1638 | + | |
| 1639 | + | |
1637 | 1640 |
| |
1638 | 1641 |
| |
1639 | 1642 |
| |
| |||
1997 | 2000 |
| |
1998 | 2001 |
| |
1999 | 2002 |
| |
2000 |
| - | |
2001 |
| - | |
| 2003 | + | |
| 2004 | + | |
| 2005 | + | |
| 2006 | + | |
2002 | 2007 |
| |
2003 | 2008 |
| |
2004 | 2009 |
| |
|
0 commit comments
Comments
(0)