From: PG Bug reporting form <noreply@postgresql.org>
To: pgsql-bugs@lists.postgresql.org
Cc: braiamp+pg@gmail.com
Subject: BUG #18007: age(timestamp, timestamp) is marked as immutable, but using age(date, date) says it's not
Date: Thu, 29 Jun 2023 17:08:25 +0000
Message-ID: <18007-036782307e002bf6@postgresql.org> (raw)
The following bug has been logged on the website:
Bug reference: 18007
Logged by: Braiam Peguero
Email address: braiamp+pg@gmail.com
PostgreSQL version: 15.3
Operating system: Debian
Description:
There's no much difference between timestamp and dateT00:00:00.000, yet
using age(date, date) for some reason internally doesn't type coerce
correctly into the appropriated types. I remember that on a previous
versions (not sure if it was 14) this wasn't the case, so I would consider
this a regression. I skimmed the release notes for 15 and only saw this note
"Mark the interval output function as stable, not immutable, since it
depends on IntervalStyle (Tom Lane) This will, for example, cause creation
of indexes relying on the text output of interval values to fail", which
doesn't seem to be relevant, since age(date::timestamp, date::timestamp)
doesn't seems to complain.
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: noreply@postgresql.org, pgsql-bugs@lists.postgresql.org, braiamp+pg@gmail.com
Subject: Re: BUG #18007: age(timestamp, timestamp) is marked as immutable, but using age(date, date) says it's not
In-Reply-To: <18007-036782307e002bf6@postgresql.org>
* 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