Commit Graph

83 Commits (010eebf1649bb28415d23ddcd0bb7afe102a078c)

Author SHA1 Message Date
Alvaro Herrera 85dfe376d9 Ratchet up patch to improve autovacuum wraparound messages. 18 years ago
Alvaro Herrera 0d09688f88 Publish more openly the fact that autovacuum is working for wraparound 18 years ago
Alvaro Herrera 46c5a212ec Avoid crashing when a table is deleted while we're on the process of checking 18 years ago
Tom Lane 5b965bf08b Teach autovacuum how to determine whether a temp table belongs to a crashed 18 years ago
Alvaro Herrera 9319fd89e1 Modify vacuum() to accept a single relation OID instead of a list (which we 18 years ago
Tom Lane 93c701edc6 Add support for tracking call counts and elapsed runtime for user-defined 18 years ago
Alvaro Herrera f8c4d7db60 Restructure some header files a bit, in particular heapam.h, by removing some 18 years ago
Alvaro Herrera 73b0300b2a Move the HTSU_Result enum definition into snapshot.h, to avoid including 18 years ago
Alvaro Herrera 470c6c12a1 Remove another useless snapshot creation. 18 years ago
Tom Lane 4873c96ff3 Fix inappropriately-timed memory context switch in autovacuum_do_vac_analyze. 18 years ago
Alvaro Herrera adc4e1e635 Fix vacuum so that autovacuum is really not cancelled when doing an emergency 18 years ago
Alvaro Herrera bccc8e3608 Change error message to be able to differentiate the two cases. Per suggestion 18 years ago
Alvaro Herrera 7aa4164363 Mark autovacuum entries in pg_stat_activity so that they can be easily 18 years ago
Bruce Momjian 9098ab9e32 Update copyrights in source tree to 2008. 18 years ago
Bruce Momjian f6e8730d11 Re-run pgindent with updated list of typedefs. (Updated README should 18 years ago
Bruce Momjian fdf5a5efb7 pgindent run for 8.3. 18 years ago
Alvaro Herrera 92be6991ad In the previous commit message, I forgot to credit Simon Riggs who provided 18 years ago
Alvaro Herrera acac68b2bc Allow an autovacuum worker to be interrupted automatically when it is found 18 years ago
Alvaro Herrera dd7444cfe2 Fix memory management for new variables -- they must actually survive 18 years ago
Alvaro Herrera dbe48765cd Extract catalog info for error reporting before an error actually happens. 18 years ago
Alvaro Herrera 745c1b2c2a Rearrange vacuum-related bits in PGPROC as a bitmask, to better support 18 years ago
Alvaro Herrera 2627c83561 Minor changes to autovacuum worker: change error handling so that it continues 18 years ago
Alvaro Herrera 45cbdaa038 Avoid having autovacuum read pgstats data too many times in quick succession. 19 years ago
Tom Lane 48f7e64395 Simplify and rename some GUC variables, per various recent discussions: 19 years ago
Tom Lane ea72d37ff7 Make autovacuum report the start time of its current activity in 19 years ago
Alvaro Herrera 945ba50dc3 Fix a memory leak in the autovacuum launcher code. Noted by Darcy Buskermolen, 19 years ago
Tom Lane f181f9e1e4 Make sure that open hash table scans are cleaned up when bgwriter tries to 19 years ago
Andrew Dunstan 63872601e8 Move session_start out of MyProcPort stucture and make it a global called MyStartTime, 19 years ago
Tom Lane bce7bacdf2 Reduce the maximum sleep interval in the autovac launcher to 1 second, 19 years ago
Tom Lane 070907b241 Add 'volatile' to suppress 'variable might be clobbered by longjmp' 19 years ago
Alvaro Herrera 2910ccefb4 Avoid crash in interrupted autovacuum worker, caused by leaving the current 19 years ago
Alvaro Herrera 10af02b912 Arrange for SIGINT in autovacuum workers to cancel the current table and 19 years ago
Alvaro Herrera bae0b56880 Improve autovacuum launcher's ability to detect a problem in worker startup, 19 years ago
Alvaro Herrera a0a26c47d4 Avoid integer overflow issues in autovacuum. 19 years ago
Alvaro Herrera a4d5872719 Disallow the cost balancing code from resulting in a zero cost limit, which 19 years ago
Alvaro Herrera 2b438c12cc Avoid passing zero as a value for vacuum_cost_limit, because it's not a valid 19 years ago
Tom Lane d526575f89 Make large sequential scans and VACUUMs work in a limited-size "ring" of 19 years ago
Alvaro Herrera 067deaf83d Make sure we don't skip databases that are supposed to be vacuumed "exactly 19 years ago
Tom Lane fab789eac9 Suppress a recently-introduced 'variable might be clobbered by longjmp' warning. 19 years ago
Alvaro Herrera 229d33801d Use the new TimestampDifferenceExceeds API instead of timestamp_cmp_internal 19 years ago
Alvaro Herrera a115bfe3b9 Fix failure to check for INVALID worker entry in the new autovacuum code, which 19 years ago
Alvaro Herrera ef23a77441 Enable configurable log of autovacuum actions. Initial patch from Simon 19 years ago
Alvaro Herrera e2a186b03c Add a multi-worker capability to autovacuum. This allows multiple worker 19 years ago
Alvaro Herrera 7d4c9a5793 Add the "recheck" logic to autovacuum worker code. The worker first builds 19 years ago
Alvaro Herrera f1a596bdfb Cosmetic changes: rename some struct fields, and move the fetching of pgstat 19 years ago
Alvaro Herrera e019bbc9e8 Set the node properly, per Tom. 19 years ago
Alvaro Herrera a0abe87f1c Separate the code to start a new worker into its own function. The code is 19 years ago
Alvaro Herrera 6287eb7adc Separate fetch of pg_autovacuum tuple into its own function. 19 years ago
Alvaro Herrera 8aaecaf809 We no longer need to palloc the VacuumStmt node; keeping it on the stack is 19 years ago
Tom Lane b9527e9840 First phase of plan-invalidation project: create a plan cache management 19 years ago