Re: Bad canonicalization for dateranges with 'infinity' bounds

Jeff Davis <pgsql@j-davis.com>

From: Jeff Davis <pgsql@j-davis.com>
To: Thomas Munro <thomas.munro@gmail.com>, Laurenz Albe <laurenz.albe@cybertec.at>
Cc: PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2019-07-18T20:56:16Z
Lists: pgsql-hackers
On Sun, 2019-07-14 at 15:27 +1200, Thomas Munro wrote:
> I take back the bit about reading an uninitialised value (X || Y
> doesn't access Y if X is true... duh), but I still think the other
> way
> of putting it is a bit easier to read.  YMMV.
> 
> Generally, +1 for this patch.  I'll wait a couple of days for more
> feedback to appear.

I went ahead and committed this using Thomas's suggestion to remove the
parentheses.

Thanks!

Regards,
	Jeff Davis





Commits

  1. Fix daterange canonicalization for +/- infinity.