pgsql: Fix minmax-multi on infinite date/timestamp values

2023-10-27 Thread Tomas Vondra
Fix minmax-multi on infinite date/timestamp values Make sure that infinite values in date/timestamp columns are treated as if in infinite distance. Infinite values should not be merged with other values, leaving them as outliers. The code however returned distance 0 in this case, so that infinite

pgsql: Fix minmax-multi on infinite date/timestamp values

2023-10-27 Thread Tomas Vondra
Fix minmax-multi on infinite date/timestamp values Make sure that infinite values in date/timestamp columns are treated as if in infinite distance. Infinite values should not be merged with other values, leaving them as outliers. The code however returned distance 0 in this case, so that infinite

pgsql: Fix minmax-multi on infinite date/timestamp values

2023-10-27 Thread Tomas Vondra
Fix minmax-multi on infinite date/timestamp values Make sure that infinite values in date/timestamp columns are treated as if in infinite distance. Infinite values should not be merged with other values, leaving them as outliers. The code however returned distance 0 in this case, so that infinite

pgsql: Fix minmax-multi on infinite date/timestamp values

2023-10-27 Thread Tomas Vondra
Fix minmax-multi on infinite date/timestamp values Make sure that infinite values in date/timestamp columns are treated as if in infinite distance. Infinite values should not be merged with other values, leaving them as outliers. The code however returned distance 0 in this case, so that infinite