int64 timestamp patch for contrib/pg_controldata - Mailing list pgsql-patches

From sugita@sra.co.jp
Subject int64 timestamp patch for contrib/pg_controldata
Date
Msg-id 20020622.165958.74735167.sugita@sra.co.jp
Whole thread Raw
Responses Re: int64 timestamp patch for contrib/pg_controldata
Re: int64 timestamp patch for contrib/pg_controldata
List pgsql-patches
This small patch makes the pg_controldata display the enableIntTimes field of
ControlFileData.

? int64-timestamp.patch
? make-install.out
? make.out
? pg_controldata
Index: pg_controldata.c
===================================================================
RCS file: /projects/cvsroot/pgsql/contrib/pg_controldata/pg_controldata.c,v
retrieving revision 1.5
diff -u -3 -p -r1.5 pg_controldata.c
--- pg_controldata.c    2001/10/25 05:49:19    1.5
+++ pg_controldata.c    2002/06/22 07:49:30
@@ -108,6 +108,7 @@ main(int argc, char *argv[])
            "Time of latest checkpoint:            %s\n"
            "Database block size:                  %u\n"
            "Blocks per segment of large relation: %u\n"
+           "Internal time format:                 %s\n"
            "LC_COLLATE:                           %s\n"
            "LC_CTYPE:                             %s\n",

@@ -131,6 +132,7 @@ main(int argc, char *argv[])
            ckpttime_str,
            ControlFile.blcksz,
            ControlFile.relseg_size,
+           ControlFile.enableIntTimes = TRUE ? "64 bits integer" : "8 bytes double",
            ControlFile.lc_collate,
            ControlFile.lc_ctype);


pgsql-patches by date:

Previous
From: "Rod Taylor"
Date:
Subject: Domain coercions
Next
From: "Greg Sabino Mullane"
Date:
Subject: Schemas for psql