pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Michael Paquier <michael.paquier@gmail.com>
Cc: pinker <pinker@onet.eu>
Cc: PostgreSQL mailing lists <pgsql-bugs@postgresql.org>
Subject: Re: Interval - incorrect grammar form
Date: Thu, 16 Jul 2015 23:43:53 -0400
Message-ID: <28147.1437104633@sss.pgh.pa.us> (raw)
In-Reply-To: <CAB7nPqT2gbS2rz7do-LWEKstCbH6WmOaP8wFB3e1nTxUtxttog@mail.gmail.com>
References: <1437033362097-5858132.post@n5.nabble.com>
	<CAB7nPqT2gbS2rz7do-LWEKstCbH6WmOaP8wFB3e1nTxUtxttog@mail.gmail.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

Michael Paquier <michael.paquier@gmail.com> writes:
> On Thu, Jul 16, 2015 at 4:56 PM, pinker <pinker@onet.eu> wrote:
>> I've noticed that interval is shown incorrectly (in plural form) when date
>> is negative:
>> 
>> select age(timestamp '2015-09-01',timestamp '2017-10-02');
>> gives:
>> "-2 years -1 *mons* -1 days"

> It behaves like this for ages, and there are some applications that
> surely rely on the current behavior, so I am not sure that it is worth
> changing now even if that's grammatically incorrect (native
> English-speaker wanted here for confirmation).

Hm, "-1 mon" is probably better than "-1 mons", but it's somewhat
debatable; it's not clear to me that the convention about singular nouns
applies to negative quantities.  And if you were arguing from
native-language conventions then writing "mon" rather than "month"
already feels pretty unnatural.

I tend to agree that backwards compatibility outweighs any benefit
we'd get here.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (3+ messages)

Message-ID: <28147.1437104633@sss.pgh.pa.us>
Permalink:  ../28147.1437104633@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/28147.1437104633@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, michael.paquier@gmail.com, pinker@onet.eu
  Subject: Re: Interval - incorrect grammar form
  In-Reply-To: <28147.1437104633@sss.pgh.pa.us>
  References: <1437033362097-5858132.post@n5.nabble.com> <CAB7nPqT2gbS2rz7do-LWEKstCbH6WmOaP8wFB3e1nTxUtxttog@mail.gmail.com> <28147.1437104633@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox