]> granicus.if.org Git - postgresql/commitdiff
interval_abs():
authorBruce Momjian <bruce@momjian.us>
Tue, 10 Nov 2009 18:41:24 +0000 (18:41 +0000)
committerBruce Momjian <bruce@momjian.us>
Tue, 10 Nov 2009 18:41:24 +0000 (18:41 +0000)
Add C comment about why there is no interval_abs():  it is unclear what
value to return:

    http://archives.postgresql.org/pgsql-general/2009-10/msg01031.php
    http://archives.postgresql.org/pgsql-general/2009-11/msg00041.php

src/backend/utils/adt/timestamp.c

index a0a61a726af225b027789cce5a2f47e511c48f96..4fbab2bb1b0e34a2c06ac0dce3a4fbb2c712a580 100644 (file)
@@ -8,7 +8,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.203 2009/09/04 11:20:22 heikki Exp $
+ *       $PostgreSQL: pgsql/src/backend/utils/adt/timestamp.c,v 1.204 2009/11/10 18:41:24 momjian Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -2779,6 +2779,12 @@ interval_mi(PG_FUNCTION_ARGS)
        PG_RETURN_INTERVAL_P(result);
 }
 
+/*
+ *  There is no interval_abs():  it is unclear what value to return:
+ *    http://archives.postgresql.org/pgsql-general/2009-10/msg01031.php
+ *    http://archives.postgresql.org/pgsql-general/2009-11/msg00041.php
+ */
 Datum
 interval_mul(PG_FUNCTION_ARGS)
 {