Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id A2E8AB5DBDA for ; Mon, 23 May 2011 15:58:38 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 07926-06 for ; Mon, 23 May 2011 18:58:31 +0000 (UTC) X-Greylist: delayed 00:14:07.8136 by SQLgrey-1.7.6 Received: from olga.hinterlands.org (olga.hinterlands.org [212.13.195.161]) by mail.postgresql.org (Postfix) with ESMTP id 45728B5D801 for ; Mon, 23 May 2011 15:58:31 -0300 (ADT) Received: from localhost ([127.0.0.1] helo=olga.hinterlands.org) by olga.hinterlands.org with esmtp (Exim 4.72) (envelope-from ) id 1QOaKg-00041U-VM; Mon, 23 May 2011 19:58:27 +0100 Received: from 82.69.6.203 (SquirrelMail authenticated user martin) by olga.hinterlands.org with HTTP; Mon, 23 May 2011 19:58:27 +0100 Message-ID: <2a599c2bb32e227b60867f89e0d8bd89.squirrel@olga.hinterlands.org> In-Reply-To: <18111.1306176659@sss.pgh.pa.us> References: <201105171435.p4HEZxNa071526@wwwmaster.postgresql.org> <201105181940.p4IJeiu23136@momjian.us> <15605.1306173724@sss.pgh.pa.us> <4336256f535c68511d989d97e43c2b22.squirrel@olga.hinterlands.org> <18111.1306176659@sss.pgh.pa.us> Date: Mon, 23 May 2011 19:58:27 +0100 Subject: Re: BUG #6028: age() function output contracts "months", but not any other units. From: "Martin A. Brooks" To: "Tom Lane" Cc: "Martin A. Brooks" , "Robert Haas" , "Bruce Momjian" , pgsql-bugs@postgresql.org User-Agent: SquirrelMail/1.4.21 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.9 tagged_above=-5 required=5 tests=BAYES_00=-1.9 X-Spam-Level: X-Archive-Number: 201105/164 X-Sequence-Number: 30303 On Mon, May 23, 2011 19:50, Tom Lane wrote: > I think possibly you misunderstand the scope of the breakage you're > proposing. This is not about the age() function. It's interval_out() > that's at stake, and so changing this would change the output formatting > for *every* operation that yields intervals. That makes it pretty > high-risk. I didn't, but now do, and can appreciate your caution. Regards Martin.