From fe92e018d7939ff1b54d676681f0c39f5b261487 Mon Sep 17 00:00:00 2001
From: "Thomas G. Lockhart" <lockhart@fourpalms.org>
Date: Fri, 5 Jul 2002 15:31:16 +0000
Subject: [PATCH] Add a few new lines to display recently added fields in the
 ControlFile  structure. Now includes the following new fields:  integer/float
 date/time storage  maximum length of names (+1; they must also include a null
 termination)  maximum number of function arguments  maximum length of locale
 name

---
 contrib/pg_controldata/pg_controldata.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/contrib/pg_controldata/pg_controldata.c b/contrib/pg_controldata/pg_controldata.c
index 1cbd352caf6..906cc0019a7 100644
--- a/contrib/pg_controldata/pg_controldata.c
+++ b/contrib/pg_controldata/pg_controldata.c
@@ -6,7 +6,7 @@
  * copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
  * licence: BSD
  *
- * $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/pg_controldata.c,v 1.5 2001/10/25 05:49:19 momjian Exp $
+ * $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/pg_controldata.c,v 1.6 2002/07/05 15:31:16 thomas Exp $
  */
 #include "postgres.h"
 
@@ -108,6 +108,10 @@ main(int argc, char *argv[])
 		   "Time of latest checkpoint:            %s\n"
 		   "Database block size:                  %u\n"
 		   "Blocks per segment of large relation: %u\n"
+		   "Maximum length of names:              %u\n"
+		   "Maximum number of function arguments: %u\n"
+		   "Date/time type storage:               %s\n"
+		   "Maximum length of locale name:        %u\n"
 		   "LC_COLLATE:                           %s\n"
 		   "LC_CTYPE:                             %s\n",
 
@@ -131,6 +135,11 @@ main(int argc, char *argv[])
 		   ckpttime_str,
 		   ControlFile.blcksz,
 		   ControlFile.relseg_size,
+		   ControlFile.nameDataLen,
+		   ControlFile.funcMaxArgs,
+		   (ControlFile.enableIntTimes?
+			"64-bit integers": "Floating point"),
+		   ControlFile.localeBuflen,
 		   ControlFile.lc_collate,
 		   ControlFile.lc_ctype);
 
-- 
GitLab