forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf442711
committed
Call pgstat_drop_database during DROP DATABASE, so that any stats file
entries for the victim database go away sooner rather than later. We alreadydid the equivalent thing at the per-relation level, not sure why it's notbeen done for whole databases. With this change, pgstat_vacuum_tabstatshould usually not find anything to do; though we still need it as a backstopin case DROPDB or TABPURGE messages get lost under load.1 parentc138b96 commitf442711
File tree
3 files changed
+11
-5
lines changed- src
- backend
- commands
- postmaster
- include
3 files changed
+11
-5
lines changedLines changed: 7 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
| 40 | + | |
40 | 41 |
| |
41 | 42 |
| |
42 | 43 |
| |
| |||
644 | 645 |
| |
645 | 646 |
| |
646 | 647 |
| |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
647 | 653 |
| |
648 | 654 |
| |
649 | 655 |
| |
|
Lines changed: 2 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
13 | 13 |
| |
14 | 14 |
| |
15 | 15 |
| |
16 |
| - | |
| 16 | + | |
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
| |||
153 | 153 |
| |
154 | 154 |
| |
155 | 155 |
| |
156 |
| - | |
157 | 156 |
| |
158 | 157 |
| |
159 | 158 |
| |
| |||
820 | 819 |
| |
821 | 820 |
| |
822 | 821 |
| |
823 |
| - | |
| 822 | + | |
824 | 823 |
| |
825 | 824 |
| |
826 | 825 |
| |
|
Lines changed: 2 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
| 381 | + | |
381 | 382 |
| |
382 | 383 |
| |
383 | 384 |
| |
|
0 commit comments
Comments
(0)