Skip to content

Commit fe92e01

Browse files
author
Thomas G. Lockhart
committed
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
1 parent b2f2415 commit fe92e01

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

contrib/pg_controldata/pg_controldata.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* copyright (c) Oliver Elphick <olly@lfix.co.uk>, 2001;
77
* licence: BSD
88
*
9-
* $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/pg_controldata.c,v 1.5 2001/10/25 05:49:19 momjian Exp $
9+
* $Header: /cvsroot/pgsql/contrib/pg_controldata/Attic/pg_controldata.c,v 1.6 2002/07/05 15:31:16 thomas Exp $
1010
*/
1111
#include "postgres.h"
1212

@@ -108,6 +108,10 @@ main(int argc, char *argv[])
108108
"Time of latest checkpoint: %s\n"
109109
"Database block size: %u\n"
110110
"Blocks per segment of large relation: %u\n"
111+
"Maximum length of names: %u\n"
112+
"Maximum number of function arguments: %u\n"
113+
"Date/time type storage: %s\n"
114+
"Maximum length of locale name: %u\n"
111115
"LC_COLLATE: %s\n"
112116
"LC_CTYPE: %s\n",
113117

@@ -131,6 +135,11 @@ main(int argc, char *argv[])
131135
ckpttime_str,
132136
ControlFile.blcksz,
133137
ControlFile.relseg_size,
138+
ControlFile.nameDataLen,
139+
ControlFile.funcMaxArgs,
140+
(ControlFile.enableIntTimes?
141+
"64-bit integers": "Floating point"),
142+
ControlFile.localeBuflen,
134143
ControlFile.lc_collate,
135144
ControlFile.lc_ctype);
136145

0 commit comments

Comments
 (0)