- Notifications
You must be signed in to change notification settings - Fork5
Commitb09cb0c
committed
Remove the pgstat_drop_relation() call from smgr_internal_unlink(), because
we don't know at that point which relation OID to tell pgstat to forget.The code was passing the relfilenode, which is incorrect, and could possiblycause some other relation's stats to be zeroed out. While we could try toclean this up, it seems much simpler and more reliable to let the nextinvocation of pgstat_vacuum_tabstat() fix things; which indeed is how itworked before I introduced the buggy code into 8.1.3 and later :-(.Problem noticed by Itagaki Takahiro, fix is per subsequent discussion.1 parent8331c11 commitb09cb0c
3 files changed
+13
-11
lines changedLines changed: 6 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 |
| |
| |||
964 | 964 |
| |
965 | 965 |
| |
966 | 966 |
| |
| 967 | + | |
| 968 | + | |
| 969 | + | |
967 | 970 |
| |
968 | 971 |
| |
| 972 | + | |
969 | 973 |
| |
970 | 974 |
| |
971 | 975 |
| |
| |||
984 | 988 |
| |
985 | 989 |
| |
986 | 990 |
| |
| 991 | + | |
987 | 992 |
| |
988 | 993 |
| |
989 | 994 |
| |
|
Lines changed: 6 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 |
| - | |
| 14 | + | |
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
| |||
20 | 20 |
| |
21 | 21 |
| |
22 | 22 |
| |
23 |
| - | |
24 | 23 |
| |
25 | 24 |
| |
26 | 25 |
| |
27 | 26 |
| |
| 27 | + | |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| |||
452 | 452 |
| |
453 | 453 |
| |
454 | 454 |
| |
455 |
| - | |
456 |
| - | |
457 |
| - | |
458 |
| - | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
459 | 459 |
| |
460 |
| - | |
461 |
| - | |
462 | 460 |
| |
463 | 461 |
| |
464 | 462 |
| |
|
Lines changed: 1 addition & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
5 | 5 |
| |
6 | 6 |
| |
7 | 7 |
| |
8 |
| - | |
| 8 | + | |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
| |||
486 | 486 |
| |
487 | 487 |
| |
488 | 488 |
| |
489 |
| - | |
490 | 489 |
| |
491 | 490 |
| |
492 | 491 |
| |
|
0 commit comments
Comments
(0)