mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
pg_resetxlog was missing support for the pg_control fields added in 7.3.
This commit is contained in:
parent
b813d143ae
commit
388ad64dc7
@ -23,7 +23,7 @@
|
||||
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.5 2002/09/04 20:31:35 momjian Exp $
|
||||
* $Header: /cvsroot/pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.6 2002/10/02 19:45:47 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -357,6 +357,15 @@ GuessControlValues(void)
|
||||
|
||||
ControlFile.blcksz = BLCKSZ;
|
||||
ControlFile.relseg_size = RELSEG_SIZE;
|
||||
ControlFile.nameDataLen = NAMEDATALEN;
|
||||
ControlFile.funcMaxArgs = FUNC_MAX_ARGS;
|
||||
#ifdef HAVE_INT64_TIMESTAMP
|
||||
ControlFile.enableIntTimes = TRUE;
|
||||
#else
|
||||
ControlFile.enableIntTimes = FALSE;
|
||||
#endif
|
||||
ControlFile.localeBuflen = LOCALE_NAME_BUFLEN;
|
||||
|
||||
localeptr = setlocale(LC_COLLATE, "");
|
||||
if (!localeptr)
|
||||
{
|
||||
@ -402,6 +411,11 @@ PrintControlValues(bool guessed)
|
||||
printf(_("Latest checkpoint's NextOID: %u\n"), ControlFile.checkPointCopy.nextOid);
|
||||
printf(_("Database block size: %u\n"), ControlFile.blcksz);
|
||||
printf(_("Blocks per segment of large relation: %u\n"), ControlFile.relseg_size);
|
||||
printf(_("Maximum length of identifiers: %u\n"), ControlFile.nameDataLen);
|
||||
printf(_("Maximum number of function arguments: %u\n"), ControlFile.funcMaxArgs);
|
||||
printf(_("Date/time type storage: %s\n"),
|
||||
(ControlFile.enableIntTimes ? _("64-bit integers") : _("Floating point")));
|
||||
printf(_("Maximum length of locale name: %u\n"), ControlFile.localeBuflen);
|
||||
printf(_("LC_COLLATE: %s\n"), ControlFile.lc_collate);
|
||||
printf(_("LC_CTYPE: %s\n"), ControlFile.lc_ctype);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user