Simplify and rename some GUC variables, per various recent discussions:
Tom Lane <tgl@sss.pgh.pa.us>
Simplify and rename some GUC variables, per various recent discussions: * stats_start_collector goes away; we always start the collector process, unless prevented by a problem with setting up the stats UDP socket. * stats_reset_on_server_start goes away; it seems useless in view of the availability of pg_stat_reset(). * stats_block_level and stats_row_level are merged into a single variable "track_counts", which controls all reports sent to the collector process. * stats_command_string is renamed to track_activities. * log_autovacuum is renamed to log_autovacuum_min_duration to better reflect its meaning. The log_autovacuum change is not a compatibility issue since it didn't exist before 8.3 anyway. The other changes need to be release-noted.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/config.sgml | modified | +38 −96 |
| doc/src/sgml/maintenance.sgml | modified | +8 −9 |
| doc/src/sgml/monitoring.sgml | modified | +16 −32 |
| doc/src/sgml/release.sgml | modified | +2 −3 |
| src/backend/commands/analyze.c | modified | +6 −6 |
| src/backend/commands/vacuumlazy.c | modified | +5 −5 |
| src/backend/postmaster/autovacuum.c | modified | +8 −20 |
| src/backend/postmaster/pgstat.c | modified | +26 −68 |
| src/backend/utils/misc/guc.c | modified | +19 −43 |
| src/backend/utils/misc/postgresql.conf.sample | modified | +7 −12 |
| src/include/pgstat.h | modified | +31 −34 |
| src/include/postmaster/autovacuum.h | modified | +2 −2 |
| src/test/regress/expected/stats.out | modified | +3 −6 |
| src/test/regress/sql/stats.sql | modified | +1 −5 |