Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 0D1C6B5DBD8 for ; Mon, 23 May 2011 15:52:28 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 34581-04 for ; Mon, 23 May 2011 18:52:21 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id C2E94B5DBD2 for ; Mon, 23 May 2011 15:52:20 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id p4NIoxO8018112; Mon, 23 May 2011 14:50:59 -0400 (EDT) To: "Martin A. Brooks" cc: "Robert Haas" , "Bruce Momjian" , pgsql-bugs@postgresql.org Subject: Re: BUG #6028: age() function output contracts "months", but not any other units. In-reply-to: <4336256f535c68511d989d97e43c2b22.squirrel@olga.hinterlands.org> References: <201105171435.p4HEZxNa071526@wwwmaster.postgresql.org> <201105181940.p4IJeiu23136@momjian.us> <15605.1306173724@sss.pgh.pa.us> <4336256f535c68511d989d97e43c2b22.squirrel@olga.hinterlands.org> Comments: In-reply-to "Martin A. Brooks" message dated "Mon, 23 May 2011 19:44:11 +0100" Date: Mon, 23 May 2011 14:50:59 -0400 Message-ID: <18111.1306176659@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201105/163 X-Sequence-Number: 30302 "Martin A. Brooks" writes: > On Mon, May 23, 2011 19:02, Tom Lane wrote: >> ISTM that changing interval's output formatting would create far too >> many problems to be justifiable for such a purely cosmetic issue. > I almost entirely agree with you except.... > My current $dayjob is working in an industry where details and aesthetics > are everything. We will spend thousands of hours of processor time just > to make sure than the sheen on an animal's fur will suggest "healthy and > luxuriant" rather than "warm and moist". It's about artistic polish. > If people are agreeing that this is not the intended, desrired or > specified output for this function, then make with the polish. It isn't > the first, and won't be the last, time that something has potentially > broken compatibility in postgres. 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. regards, tom lane