-
- Downloads
Just-in-time background writing strategy. This code avoids re-scanning
buffers that cannot possibly need to be cleaned, and estimates how many buffers it should try to clean based on moving averages of recent allocation requests and density of reusable buffers. The patch also adds a couple more columns to pg_stat_bgwriter to help measure the effectiveness of the bgwriter. Greg Smith, building on his own work and ideas from several other people, in particular a much older patch from Itagaki Takahiro.
Showing
- doc/src/sgml/config.sgml 25 additions, 18 deletionsdoc/src/sgml/config.sgml
- doc/src/sgml/monitoring.sgml 22 additions, 2 deletionsdoc/src/sgml/monitoring.sgml
- src/backend/catalog/system_views.sql 4 additions, 2 deletionssrc/backend/catalog/system_views.sql
- src/backend/postmaster/bgwriter.c 27 additions, 8 deletionssrc/backend/postmaster/bgwriter.c
- src/backend/postmaster/pgstat.c 3 additions, 1 deletionsrc/backend/postmaster/pgstat.c
- src/backend/storage/buffer/bufmgr.c 280 additions, 40 deletionssrc/backend/storage/buffer/bufmgr.c
- src/backend/storage/buffer/freelist.c 35 additions, 6 deletionssrc/backend/storage/buffer/freelist.c
- src/backend/utils/adt/pgstatfuncs.c 15 additions, 1 deletionsrc/backend/utils/adt/pgstatfuncs.c
- src/backend/utils/misc/guc.c 6 additions, 6 deletionssrc/backend/utils/misc/guc.c
- src/backend/utils/misc/postgresql.conf.sample 2 additions, 2 deletionssrc/backend/utils/misc/postgresql.conf.sample
- src/include/catalog/catversion.h 2 additions, 2 deletionssrc/include/catalog/catversion.h
- src/include/catalog/pg_proc.h 6 additions, 1 deletionsrc/include/catalog/pg_proc.h
- src/include/pgstat.h 5 additions, 1 deletionsrc/include/pgstat.h
- src/include/storage/buf_internals.h 2 additions, 2 deletionssrc/include/storage/buf_internals.h
- src/include/storage/bufmgr.h 2 additions, 2 deletionssrc/include/storage/bufmgr.h
- src/test/regress/expected/rules.out 1 addition, 1 deletionsrc/test/regress/expected/rules.out
Loading
Please register or sign in to comment