Skip to content

Commit 388ad64

Browse files
committed
pg_resetxlog was missing support for the pg_control fields added in 7.3.
1 parent b813d14 commit 388ad64

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

src/bin/pg_resetxlog/pg_resetxlog.c

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
* Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
2424
* Portions Copyright (c) 1994, Regents of the University of California
2525
*
26-
* $Header: /cvsroot/pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.5 2002/09/04 20:31:35 momjian Exp $
26+
* $Header: /cvsroot/pgsql/src/bin/pg_resetxlog/pg_resetxlog.c,v 1.6 2002/10/02 19:45:47 tgl Exp $
2727
*
2828
*-------------------------------------------------------------------------
2929
*/
@@ -357,6 +357,15 @@ GuessControlValues(void)
357357

358358
ControlFile.blcksz = BLCKSZ;
359359
ControlFile.relseg_size = RELSEG_SIZE;
360+
ControlFile.nameDataLen = NAMEDATALEN;
361+
ControlFile.funcMaxArgs = FUNC_MAX_ARGS;
362+
#ifdef HAVE_INT64_TIMESTAMP
363+
ControlFile.enableIntTimes = TRUE;
364+
#else
365+
ControlFile.enableIntTimes = FALSE;
366+
#endif
367+
ControlFile.localeBuflen = LOCALE_NAME_BUFLEN;
368+
360369
localeptr = setlocale(LC_COLLATE, "");
361370
if (!localeptr)
362371
{
@@ -402,6 +411,11 @@ PrintControlValues(bool guessed)
402411
printf(_("Latest checkpoint's NextOID: %u\n"), ControlFile.checkPointCopy.nextOid);
403412
printf(_("Database block size: %u\n"), ControlFile.blcksz);
404413
printf(_("Blocks per segment of large relation: %u\n"), ControlFile.relseg_size);
414+
printf(_("Maximum length of identifiers: %u\n"), ControlFile.nameDataLen);
415+
printf(_("Maximum number of function arguments: %u\n"), ControlFile.funcMaxArgs);
416+
printf(_("Date/time type storage: %s\n"),
417+
(ControlFile.enableIntTimes ? _("64-bit integers") : _("Floating point")));
418+
printf(_("Maximum length of locale name: %u\n"), ControlFile.localeBuflen);
405419
printf(_("LC_COLLATE: %s\n"), ControlFile.lc_collate);
406420
printf(_("LC_CTYPE: %s\n"), ControlFile.lc_ctype);
407421
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy