mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-21 08:29:39 +08:00
bd18c50ba8
changed as per discussion on the patches list). This version should be a good bit better. It addresses all the issues pointed out by Neil Conway. Vacuum and Analyze are now handled separately. It now monitors for xid wraparound. The number of database connections and queries has been significantly reduced compared the previous version. I have moved it from bin to contrib. More detail on the changes are in the TODO file. I have not tested the xid wraparound code as I have to let my AthlonXP 1600 run select 1 in a tight loop for approx. two days in order to perform the required 500,000,000 xacts. Matthew T. O'Connor
37 lines
1.1 KiB
Plaintext
37 lines
1.1 KiB
Plaintext
Todo Items for pg_autovacuum client
|
|
|
|
_Allow it to detach from the tty
|
|
|
|
_create a FSM export function and see if I can use it for pg_autovacuum
|
|
|
|
_look into possible benifits of pgstattuple contrib work
|
|
|
|
_Continue trying to reduce server load created by polling.
|
|
|
|
Done:
|
|
_Check if required pg_stats are enables, if not exit with error
|
|
|
|
_Reduce the number connections and queries to the server
|
|
_Make database adding and removal part of the normal loop
|
|
_make table adding and removal part of the normal loop
|
|
|
|
_Separate logic for vacuum and analyze
|
|
|
|
_all pg_autovacuum specific functions are now static
|
|
|
|
_correct usage of snprintf
|
|
|
|
_reworked database and table update functions, now they
|
|
use the existing database connection and only one query
|
|
|
|
_fixed -h option output
|
|
|
|
_cleanup of 'constant == variable' used much more consistently now.
|
|
|
|
_Guarantee database wide vacuum prior to Xid wraparound
|
|
|
|
_change name to pg_autovacuum
|
|
|
|
_Add proper table and database removal functions so that we can properly
|
|
clear up before we exit, and make sure we don't leak memory when removing tables and such.
|