X-Original-To: pgsql-hackers-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 1C0E29DCC97 for ; Wed, 1 Mar 2006 19:18:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 29930-06 for ; Wed, 1 Mar 2006 19:18:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id E994E9DCCFE for ; Wed, 1 Mar 2006 19:18:14 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id k21NHjIq016846; Wed, 1 Mar 2006 18:17:45 -0500 (EST) To: Bruce Momjian cc: Mark Dilger , pgsql-hackers@postgresql.org Subject: Re: [SQL] Interval subtracting In-reply-to: <200603012311.k21NBvX06405@candle.pha.pa.us> References: <200603012311.k21NBvX06405@candle.pha.pa.us> Comments: In-reply-to Bruce Momjian message dated "Wed, 01 Mar 2006 18:11:57 -0500" Date: Wed, 01 Mar 2006 18:17:45 -0500 Message-ID: <16845.1141255065@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.111 required=5 tests=[AWL=0.111] X-Spam-Score: 0.111 X-Spam-Level: X-Archive-Number: 200603/82 X-Sequence-Number: 80480 Bruce Momjian writes: >> Well, the question is whether justify_days has a sane definition that is >> different from this. Based on your example, I'm not seeing one. > Uh, justify days only deals with days <--> months conversions. There is > no processing for hours. I don't understand your comment. So it won't guarantee that hours has a consistent sign. If you're OK with that, then that's fine, let's make justify_days work that way and then provide a justify_interval that processes all three fields. regards, tom lane