mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-26 12:07:19 +02:00
* 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. |
||
---|---|---|
.. | ||
catalog.h | ||
catname.h | ||
catversion.h | ||
duplicate_oids | ||
heap.h | ||
index.h | ||
indexing.h | ||
pg_aggregate.h | ||
pg_am.h | ||
pg_amop.h | ||
pg_amproc.h | ||
pg_attrdef.h | ||
pg_attribute.h | ||
pg_class.h | ||
pg_control.h | ||
pg_database.h | ||
pg_description.h | ||
pg_group.h | ||
pg_index.h | ||
pg_inheritproc.h | ||
pg_inherits.h | ||
pg_ipl.h | ||
pg_language.h | ||
pg_largeobject.h | ||
pg_listener.h | ||
pg_log.h | ||
pg_opclass.h | ||
pg_operator.h | ||
pg_proc.h | ||
pg_relcheck.h | ||
pg_rewrite.h | ||
pg_shadow.h | ||
pg_statistic.h | ||
pg_trigger.h | ||
pg_type.h | ||
pg_variable.h | ||
pg_version.h | ||
unused_oids |