Re: Interval unit format bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gary Clarke <gary(at)onedb(dot)online>
Cc: "pgsql-bugs(at)lists(dot)postgresql(dot)org" <pgsql-bugs(at)lists(dot)postgresql(dot)org>
Subject: Re: Interval unit format bug
Date: 2026-04-30 14:04:58
Message-ID: 742270.1777557898@sss.pgh.pa.us
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Gary Clarke <gary(at)onedb(dot)online> writes:
> Even if I set to verbose, Postgres outputs a very strange abbreviation for interval unit months that nobody else uses or would expect.

[ shrug... ] This is documented:

https://www.postgresql.org/docs/current/datatype-datetime.html#DATATYPE-INTERVAL-OUTPUT

If we were to change it now, decades after the fact, what we'd mostly
accomplish is to break applications.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Ayush Tiwari 2026-04-30 14:14:24 Re: to_date()/to_timestamp() silently accept month=0 and day=0
Previous Message David G. Johnston 2026-04-30 14:03:34 Re: Interval unit format bug