pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Noah Misch <noah@leadboat.com>
To: Bruce Momjian <bruce@momjian.us>
Cc: neverov.max@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #16939: Plural interval for negative singular
Date: Sun, 25 Apr 2021 04:57:26 -0700
Message-ID: <20210425115726.GA2353095@rfd.leadboat.com> (raw)
In-Reply-To: <20210323160336.GE579@momjian.us>
References: <16939-cceeb03fb72736ee@postgresql.org>
	<20210323160336.GE579@momjian.us>

On Tue, Mar 23, 2021 at 12:03:36PM -0400, Bruce Momjian wrote:
> On Tue, Mar 23, 2021 at 05:21:30AM +0000, PG Bug reporting form wrote:
> > postgres=# set intervalstyle='postgres';
> > SET
> > postgres=#  select interval '-1 year -1 day';
> >      interval
> > ------------------
> >  -1 years -1 days
> > (1 row)
> > 
> > Expected output:
> > -1 year -1 day
> > 
> > The code
> > (https://github.com/postgres/postgres/blob/master/src/backend/utils/adt/datetime.c#L4193)
> > pluralizes a time unit if the value is not 1, should check both -1 and 1.



view thread (20+ messages)  latest in thread

Message-ID: <20210425115726.GA2353095@rfd.leadboat.com>
Permalink:  ../20210425115726.GA2353095@rfd.leadboat.com/
Also on:    postgresql.org/message-id/20210425115726.GA2353095@rfd.leadboat.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-bugs@postgresql.org
  Cc: noah@leadboat.com, bruce@momjian.us, neverov.max@gmail.com, pgsql-bugs@lists.postgresql.org
  Subject: Re: BUG #16939: Plural interval for negative singular
  In-Reply-To: <20210425115726.GA2353095@rfd.leadboat.com>

* 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