summaryrefslogtreecommitdiff
path: root/src/include/postmaster
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright for 2006. Update scripts.Bruce Momjian2006-03-056-12/+12
|
* Set progname early in the postmaster/postgres binary, rather than doingBruce Momjian2006-02-011-1/+2
| | | | | | | | | | it later. This fixes a problem where EXEC_BACKEND didn't have progname set, causing a segfault if log_min_messages was set below debug2 and our own snprintf.c was being used. Also alway strdup() progname. Backpatch to 8.1.X and 8.0.X.
* Standard pgindent run for 8.1.Bruce Momjian2005-10-153-15/+14
|
* Convert the arithmetic for shared memory size calculation from 'int'Tom Lane2005-08-202-4/+4
| | | | | | | | | | | to 'Size' (that is, size_t), and install overflow detection checks in it. This allows us to remove the former arbitrary restrictions on NBuffers etc. It won't make any difference in a 32-bit machine, but in a 64-bit machine you could theoretically have terabytes of shared buffers. (How efficiently we could manage 'em remains to be seen.) Similarly, num_temp_buffers, work_mem, and maintenance_work_mem can be set above 2Gb on a 64-bit machine. Original patch from Koichi Suzuki, additional work by moi.
* Autovacuum loose end mop-up. Provide autovacuum-specific vacuum costTom Lane2005-08-111-1/+3
| | | | | | | delay and limit, both as global GUCs and as table-specific entries in pg_autovacuum. stats_reset_on_server_start is now OFF by default, but a reset is forced if we did WAL replay. XID-wrap vacuums do not ANALYZE, but do FREEZE if it's a template database. Alvaro Herrera
* Integrate autovacuum functionality into the backend. There's still aTom Lane2005-07-141-0/+38
| | | | | few loose ends to be dealt with, but it seems to work. Alvaro Herrera, based on the contrib code by Matthew O'Connor.
* Improve the checkpoint signaling mechanism so that the bgwriter can tellTom Lane2005-06-301-2/+2
| | | | | | | | the difference between checkpoints forced due to WAL segment consumption and checkpoints forced for other reasons (such as CREATE DATABASE). Avoid generating 'checkpoints are occurring too frequently' messages when the checkpoint wasn't caused by WAL segment consumption. Per gripe from Chris K-L.
* Rename Rendezvous to Bonjour to match OS/X renaming.Bruce Momjian2005-05-151-2/+2
|
* Add missing identification comment, remove entirely inappropriate includeTom Lane2005-03-131-3/+12
| | | | of postgres.h.
* Refactor fork()-related code. We need to do various housekeeping tasksNeil Conway2005-03-101-0/+8
| | | | | | | | | | before we can invoke fork() -- flush stdio buffers, save and restore the profiling timer on Linux with LINUX_PROFILE, and handle BeOS stuff. This patch moves that code into a single function, fork_process(), instead of duplicating it at the various callsites of fork(). This patch doesn't address the EXEC_BACKEND case; there is room for further cleanup there.
* Replace the BufMgrLock with separate locks on the lookup hashtable andTom Lane2005-03-041-3/+1
| | | | | | | | the freelist, plus per-buffer spinlocks that protect access to individual shared buffer headers. This requires abandoning a global freelist (since the freelist is a global contention point), which shoots down ARC and 2Q as well as plain LRU management. Adopt a clock sweep algorithm instead. Preliminary results show substantial improvement in multi-backend situations.
* Some more missed copyright notices. Many of these look like theyTom Lane2005-01-011-2/+2
| | | | | should have been caught by the src/tools/copyright script ... why weren't they?
* Tag appropriate files for rc3PostgreSQL Daemon2004-12-313-6/+6
| | | | | | | | Also performed an initial run through of upgrading our Copyright date to extend to 2005 ... first run here was very simple ... change everything where: grep 1996-2004 && the word 'Copyright' ... scanned through the generated list with 'less' first, and after, to make sure that I only picked up the right entries ...
* Refactor EXEC_BACKEND code so that postmaster child processes reattachTom Lane2004-12-291-1/+4
| | | | | | | | | | to shared memory as soon as possible, ie, right after read_backend_variables. The effective difference from the original code is that this happens before instead of after read_nondefault_variables(), which loads GUC information and is apparently capable of expanding the backend's memory allocation more than you'd think it should. This should fix the failure-to-attach-to-shared-memory reports we've been seeing on Windows. Also clean up a few bits of unnecessarily grotty EXEC_BACKEND code.
* Replace log_filename_prefix with more general log_filename parameter,Tom Lane2004-08-311-2/+3
| | | | | | | to allow DBA to choose the form in which log filenames reflect the current time. Also allow for truncating instead of appending to pre-existing files --- this is convenient when the log filename pattern rewrites the same names cyclically. Per Ed L.
* Pgindent run for 8.0.Bruce Momjian2004-08-292-4/+6
|
* Update copyright to 2004.Bruce Momjian2004-08-293-6/+6
|
* Create a built-in log rotation program, so that we no longer have toTom Lane2004-08-052-2/+41
| | | | | | | | | recommend that people go get Apache's rotatelogs program. Additional benefits are that configuration is done through GUC, rather than externally, and that the postmaster can monitor the log rotator and restart it after failure (though we certainly hope that won't happen often). Andreas Pflug, some rework by Tom Lane.
* Back out pg_autovacuum commit after cvs clean failure causes commit.Bruce Momjian2004-07-211-2/+1
|
* lease find enclosed a patch that matches the PL/Perl documentationBruce Momjian2004-07-211-1/+2
| | | | | | (fairly closely, I hope) to the current PL/Perl implementation. David Fetter
* XLOG file archiving and point-in-time recovery. There are still someTom Lane2004-07-191-0/+26
| | | | | | loose ends and a glaring lack of documentation, but it basically works. Simon Riggs with some editorialization by Tom Lane.
* Per previous discussions, get rid of use of sync(2) in favor ofTom Lane2004-05-311-1/+8
| | | | | | | | | | | | | | | | | explicitly fsync'ing every (non-temp) file we have written since the last checkpoint. In the vast majority of cases, the burden of the fsyncs should fall on the bgwriter process not on backends. (To this end, we assume that an fsync issued by the bgwriter will force out blocks written to the same file by other processes using other file descriptors. Anyone have a problem with that?) This makes the world safe for WIN32, which ain't even got sync(2), and really makes the world safe for Unixen as well, because sync(2) never had the semantics we need: it offers no way to wait for the requested I/O to finish. Along the way, fix a bug I recently introduced in xlog recovery: file truncation replay failed to clear bufmgr buffers for the dropped blocks, which could result in 'PANIC: heap_delete_redo: no block' later on in xlog replay.
* Implement new PostmasterIsAlive() check for WIN32, per Claudio Natoli.Tom Lane2004-05-301-1/+5
| | | | In passing, align a few error messages with the style guide.
* Separate out bgwriter code into a logically separate module, ratherTom Lane2004-05-292-0/+70
than being random pieces of other files. Give bgwriter responsibility for all checkpoint activity (other than a post-recovery checkpoint); so this child process absorbs the functionality of the former transient checkpoint and shutdown subprocesses. While at it, create an actual include file for postmaster.c, which for some reason never had its own file before.