- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit530050d
committed
Add code comment explaining ins_since_vacuum and aborted inserts
Sami complained that there's a discrepancy between n_mod_since_analyzeand n_ins_since_vacuum, as the former only accounts for committed changesand the latter tracks committed and aborted inserts. Nobody seemedoverly concerned that this would cause any concerning issues. Therepercussions, from what I can tell, are limited to causing anautovacuum to trigger for inserts sooner than it otherwise might. Fortypical ratios of commits to aborts, it's unlikely to ever be noticed.Fixing things to make it so n_ins_since_vacuum only displays committedinserts would require an additional field in PgStat_TableCounts, whichdoes not quite seem worthwhile at this stage. This commit just adds acomment with some details to mention that we know about it, which willhopefully prevent repeat discussions.Reported-by: Sami Imseih <samimseih@gmail.com>Author: David Rowley <drowleyml@gmail.com>Reviewed-by: Sami Imseih <samimseih@gmail.com>Discussion:https://postgr.es/m/CAApHDvpgV3a-R2EGmPOh0L-x3pHbZpM3y4dySWfy+UqUazwDQA@mail.gmail.com1 parent39729ec commit530050d
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
871 | 879 | | |
| 880 | + | |
872 | 881 | | |
873 | 882 | | |
874 | 883 | | |
| |||
0 commit comments
Comments
(0)