1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-22 02:52:08 +03:00
Commit Graph

19 Commits

Author SHA1 Message Date
5c2d36c3dd Code review for latest changes. 2002-01-11 21:27:13 +00:00
37c9346ef2 pg_resetxlog specifies log location in hex; more pg_upgrade testing
improvments.
2002-01-11 06:33:01 +00:00
9ab1872ef4 Have pg_resetxlog -n return zero exit status. 2002-01-10 23:46:13 +00:00
c309873680 Remove 7.1beta WAL handling from /contrib/pg_resetxlog. 2002-01-10 23:40:58 +00:00
4c0e9b5efc Add new -l flag to set checkpoint location for /contrib/pg_resetxlog. 2002-01-10 20:09:06 +00:00
872aad61ff Per Tom, do full reset on -x flag. 2002-01-10 18:08:29 +00:00
f6e603cffa Add new -x XID option to /contrib/pg_resetxlog for future pg_upgrade use. 2002-01-10 17:51:52 +00:00
ea08e6cd55 New pgindent run with fixes suggested by Tom. Patch manually reviewed,
initdb/regression tests pass.
2001-11-05 17:46:40 +00:00
6783b2372e Another pgindent run. Fixes enum indenting, and improves #endif
spacing.  Also adds space for one-line comments.
2001-10-28 06:26:15 +00:00
b81844b173 pgindent run on all C files. Java run to follow. initdb/regression
tests pass.
2001-10-25 05:50:21 +00:00
b4a57b0648 Add more missing 'do { ... } while (0)' in missing macros. Without it,
these macros fail in if/else cases:

#define X \
{ \
	... \
}


{

	if (...)
		X;
	else
		...
}

with proper setup:

#define X \
do { \
	... \
} while (0)

it works fine.
2001-10-25 00:55:48 +00:00
17cc78ef01 To fix the perpetually broken makefiles in the contrib tree, I have
written a generic framework of rules that the contrib makefiles can
use instead of writing their own each time.  You only need to set a few
variables and off you go.
2001-09-06 10:49:30 +00:00
7d4d5c00f0 Arrange to recycle old XLOG log segment files as new segment files,
rather than deleting them only to have to create more.  Steady state
is 2*CHECKPOINT_SEGMENTS + WAL_FILES + 1 segment files, which will
simply be renamed rather than constantly deleted and recreated.
To make this safe, added current XLOG file/offset number to page
header of XLOG pages, so that an un-overwritten page from an old
incarnation of a logfile can be reliably told from a valid page.
This change means that if you try to restart postmaster in a CVS-tip
database after installing the change, you'll get a complaint about
bad XLOG page magic number.  If you don't want to initdb, run
contrib/pg_resetxlog (and be sure you shut down the old postmaster
cleanly).
2001-07-19 02:12:35 +00:00
1173344e74 Adjust WAL code so that checkpoints truncate the xlog at the previous
checkpoint's redo pointer, not its undo pointer, per discussion in
pghackers a few days ago.  No point in hanging onto undo information
until we have the ability to do something with it --- and this solves
a rather large problem with log space for long-running transactions.
Also, change all calls of write() to detect the case where write
returned a count less than requested, but failed to set errno.
Presume that this situation indicates ENOSPC, and give the appropriate
error message, rather than a random message associated with the previous
value of errno.
2001-06-06 17:07:46 +00:00
e7988a7ad3 Remove SEP_CHAR from /contrib. 2001-05-30 14:18:18 +00:00
5f5db804f5 Provide snprintf() if system hasn't got it. 2001-04-03 19:06:19 +00:00
9e1552607a pgindent run. Make it all clean. 2001-03-22 04:01:46 +00:00
4eb5e27a28 Resetting the XLOG can't include rewinding it to logical position zero,
because we need page LSNs stored in the main database to be less than
the current XLOG position.  Hence, generate the new XLOG segment at last
old segment number plus one.
2001-03-16 05:08:39 +00:00
eeaf3fc3a1 First cut at XLOG file reset utility.
Could do with more testing, but it works in the simple cases.
2001-03-14 00:57:43 +00:00