aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas G. Lockhart <lockhart@fourpalms.org>1997-09-04 18:44:29 +0000
committerThomas G. Lockhart <lockhart@fourpalms.org>1997-09-04 18:44:29 +0000
commitb647a27cf50ce91f5038c1cd0a8ceab6b7e68e72 (patch)
tree6e6ac8a13d3ee83236dde365506b10b269a7eb37 /src
parent7c243f83e82238b65c8ee08054be838fe723f704 (diff)
downloadpostgresql-b647a27cf50ce91f5038c1cd0a8ceab6b7e68e72.tar.gz
postgresql-b647a27cf50ce91f5038c1cd0a8ceab6b7e68e72.zip
Add comparision routines to support indices on datetime and timespan.
Diffstat (limited to 'src')
-rw-r--r--src/include/utils/dt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/include/utils/dt.h b/src/include/utils/dt.h
index b9e678687ea..2065e62d05f 100644
--- a/src/include/utils/dt.h
+++ b/src/include/utils/dt.h
@@ -8,7 +8,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: dt.h,v 1.17 1997/08/21 23:57:00 momjian Exp $
+ * $Id: dt.h,v 1.18 1997/09/04 18:44:29 thomas Exp $
*
*-------------------------------------------------------------------------
*/
@@ -259,6 +259,7 @@ extern bool datetime_le(DateTime *dt1, DateTime *dt2);
extern bool datetime_ge(DateTime *dt1, DateTime *dt2);
extern bool datetime_gt(DateTime *dt1, DateTime *dt2);
extern bool datetime_finite(DateTime *datetime);
+extern int datetime_cmp(DateTime *dt1, DateTime *dt2);
extern DateTime *datetime_smaller(DateTime *dt1, DateTime *dt2);
extern DateTime *datetime_larger(DateTime *dt1, DateTime *dt2);
@@ -270,6 +271,7 @@ extern bool timespan_lt(TimeSpan *span1, TimeSpan *span2);
extern bool timespan_le(TimeSpan *span1, TimeSpan *span2);
extern bool timespan_ge(TimeSpan *span1, TimeSpan *span2);
extern bool timespan_gt(TimeSpan *span1, TimeSpan *span2);
+extern int timespan_cmp(TimeSpan *span1, TimeSpan *span2);
extern TimeSpan *timespan_smaller(TimeSpan *span1, TimeSpan *span2);
extern TimeSpan *timespan_larger(TimeSpan *span1, TimeSpan *span2);