interval_abs():
authorBruce Momjian <[email protected]>
Tue, 10 Nov 2009 18:41:24 +0000 (18:41 +0000)
committerBruce Momjian <[email protected]>
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 b4059d4a41daa1dba706de76a0571a4dc2ffa465..fa3a27b8f4286b865b622f9e1210b8aad0ed10ce 100644 (file)
@@ -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)
 {