postgresql/src/backend/port
Tom Lane 4d14fe0048 XLOG (and related) changes:
* Store two past checkpoint locations, not just one, in pg_control.
  On startup, we fall back to the older checkpoint if the newer one
  is unreadable.  Also, a physical copy of the newest checkpoint record
  is kept in pg_control for possible use in disaster recovery (ie,
  complete loss of pg_xlog).  Also add a version number for pg_control
  itself.  Remove archdir from pg_control; it ought to be a GUC
  parameter, not a special case (not that it's implemented yet anyway).

* Suppress successive checkpoint records when nothing has been entered
  in the WAL log since the last one.  This is not so much to avoid I/O
  as to make it actually useful to keep track of the last two
  checkpoints.  If the things are right next to each other then there's
  not a lot of redundancy gained...

* Change CRC scheme to a true 64-bit CRC, not a pair of 32-bit CRCs
  on alternate bytes.  Polynomial borrowed from ECMA DLT1 standard.

* Fix XLOG record length handling so that it will work at BLCKSZ = 32k.

* Change XID allocation to work more like OID allocation.  (This is of
  dubious necessity, but I think it's a good idea anyway.)

* Fix a number of minor bugs, such as off-by-one logic for XLOG file
  wraparound at the 4 gig mark.

* Add documentation and clean up some coding infelicities; move file
  format declarations out to include files where planned contrib
  utilities can get at them.

* Checkpoint will now occur every CHECKPOINT_SEGMENTS log segments or
  every CHECKPOINT_TIMEOUT seconds, whichever comes first.  It is also
  possible to force a checkpoint by sending SIGUSR1 to the postmaster
  (undocumented feature...)

* Defend against kill -9 postmaster by storing shmem block's key and ID
  in postmaster.pid lockfile, and checking at startup to ensure that no
  processes are still connected to old shmem block (if it still exists).

* Switch backends to accept SIGQUIT rather than SIGUSR1 for emergency
  stop, for symmetry with postmaster and xlog utilities.  Clean up signal
  handling in bootstrap.c so that xlog utilities launched by postmaster
  will react to signals better.

* Standalone bootstrap now grabs lockfile in target directory, as added
  insurance against running it in parallel with live postmaster.
2001-03-13 01:17:06 +00:00
..
aix Please apply the following patch to fix problems with the AIX port 2000-09-29 22:00:49 +00:00
beos XLOG (and related) changes: 2001-03-13 01:17:06 +00:00
darwin attached is a patch that makes SysV semaphore emulation 2001-01-17 22:11:19 +00:00
dynloader Add missing include. 2001-03-01 19:03:44 +00:00
hpux This hasn't been used for anything for a long time... 2001-02-09 19:26:45 +00:00
nextstep Fix relative path references so that make knowns which dependencies refer 2000-08-31 16:12:35 +00:00
qnx4 XLOG (and related) changes: 2001-03-13 01:17:06 +00:00
sunos4 Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
tas Solaris cleanup. 1998-06-19 02:55:19 +00:00
gethostname.c Renaming cleanup, no pgindent yet. 1998-09-01 03:29:17 +00:00
getrusage.c Add stdio for NULL define. 1998-12-12 19:57:51 +00:00
inet_aton.c Ensure that all uses of <ctype.h> functions are applied to unsigned-char 2000-12-03 20:45:40 +00:00
inet_aton.h pgindent run before 6.3 release, with Thomas' requested changes. 1998-02-26 04:46:47 +00:00
isinf.c Ye-old pgindent run. Same 4-space tabs. 2000-04-12 17:17:23 +00:00
Makefile.in Darwin porting patches from Peter Bierman <bierman@apple.com> 2000-12-11 00:49:54 +00:00
random.c Add back improperly removed #include for config.h. 1999-07-16 23:09:45 +00:00
snprintf.c Restructure the key include files per recent pghackers discussion: there 2001-02-10 02:31:31 +00:00
srandom.c Add back improperly removed #include for config.h. 1999-07-16 23:09:45 +00:00
strcasecmp.c Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
strerror.c Change #include's to use <> and "" as appropriate. 1999-07-15 23:04:24 +00:00
strtol.c Change Copyright from PostgreSQL, Inc to PostgreSQL Global Development Group. 2001-01-24 19:43:33 +00:00
strtoul.c Ensure that all uses of <ctype.h> functions are applied to unsigned-char 2000-12-03 20:45:40 +00:00