Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit388ad64

Browse files
committed
pg_resetxlog was missing support for the pg_control fields added in 7.3.
1 parentb813d14 commit388ad64

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+
#ifdefHAVE_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)

[8]ページ先頭

©2009-2025 Movatter.jp