summaryrefslogtreecommitdiff
path: root/src/include/utils/nabstime.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2000-01-24 19:34:19 +0000
committerPeter Eisentraut <peter_e@gmx.net>2000-01-24 19:34:19 +0000
commitbdb41ad0e74729efda889b6c6fda313aaeaa9960 (patch)
tree1926cc44a9cb9fca02dc60aafec12bf82a70a416 /src/include/utils/nabstime.h
parent0dbffa704ab3235431b4caef675d9179109d4a0c (diff)
downloadpostgresql-bdb41ad0e74729efda889b6c6fda313aaeaa9960.tar.gz
Made abstime/reltime use int4 instead of time_t (TODO item)
Made type equivalency apply to aggregates (TODO item) Fixed parsing bug in psql Reverted some stupid options changes I made to pg_dump
Diffstat (limited to 'src/include/utils/nabstime.h')
-rw-r--r--src/include/utils/nabstime.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/include/utils/nabstime.h b/src/include/utils/nabstime.h
index ace0e135fd..9543f679a7 100644
--- a/src/include/utils/nabstime.h
+++ b/src/include/utils/nabstime.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: nabstime.h,v 1.20 1999/05/25 16:14:56 momjian Exp $
+ * $Id: nabstime.h,v 1.21 2000/01/24 19:34:19 petere Exp $
*
*-------------------------------------------------------------------------
*/
@@ -23,13 +23,14 @@
*
* ----------------------------------------------------------------
*/
-/* The original typedefs are bogus - they assume that the system's 'time_t'
- * type is of size 32-bits. Under AlphaLinux, time_t is a long int, which
- * is 64-bits. Therefore, typedef these both as simply 'time_t', and let
- * the OS define what the size really is. -- RME 3/5/99
+/*
+ * Although time_t generally is a long int on 64 bit systems, these two
+ * types must be 4 bytes, because that's what the system assumes. They
+ * should be yanked (long) before 2038 and be replaced by timestamp and
+ * interval.
*/
-typedef time_t AbsoluteTime;
-typedef time_t RelativeTime;
+typedef int32 AbsoluteTime;
+typedef int32 RelativeTime;
typedef struct
{