|
23 | 23 | * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
24 | 24 | * Portions Copyright (c) 1994, Regents of the University of California
|
25 | 25 | *
|
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 $ |
27 | 27 | *
|
28 | 28 | *-------------------------------------------------------------------------
|
29 | 29 | */
|
@@ -357,6 +357,15 @@ GuessControlValues(void)
|
357 | 357 |
|
358 | 358 | ControlFile.blcksz = BLCKSZ;
|
359 | 359 | 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 | + |
360 | 369 | localeptr = setlocale(LC_COLLATE, "");
|
361 | 370 | if (!localeptr)
|
362 | 371 | {
|
@@ -402,6 +411,11 @@ PrintControlValues(bool guessed)
|
402 | 411 | printf(_("Latest checkpoint's NextOID: %u\n"), ControlFile.checkPointCopy.nextOid);
|
403 | 412 | printf(_("Database block size: %u\n"), ControlFile.blcksz);
|
404 | 413 | 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); |
405 | 419 | printf(_("LC_COLLATE: %s\n"), ControlFile.lc_collate);
|
406 | 420 | printf(_("LC_CTYPE: %s\n"), ControlFile.lc_ctype);
|
407 | 421 | }
|
|
0 commit comments