Laurenz Albe <[email protected]> writes:
> On Mon, 2026-07-27 at 08:23 -0400, Tom Lane wrote:
>> I thought for a bit about changing the support function
>> timestamp_cmp_timestamptz so that it instead converts the
>> timestamptz side down to timestamp. That would make an index
>> search work consistently ... but it would be inconsistent with
>> what the SQL-accessible operators do, so I think it's a nonstarter.
> What if we change the definition of the SQL operators accordingly?
> That should only affect very few actual values. We can do that
> in master, with a note in the compatibility section, right?
It would behave very strangely I think: you'd have a situation where,
eg,
A::timestamp > B::timestamptz
B::timestamptz < A::timestamp
sometimes give different answers, so that we'd have to stop marking
them as commutators. The downsides of that seem pretty awful.
> But wouldn't that also mean that very few people are going to be
> unhappy if we backpatch a change in the behavior of the SQL
> operators?
Backpatching a behavioral change like this seems awfully scary.
For the moment I'm just contemplating what we could potentially
change in master. So far I don't like any of the choices :-(
regards, tom lane