Use get_greatest_modulus() in partition_bounds_equal()
Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
From: Ashutosh Bapat <ashutosh.bapat@enterprisedb.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2017-12-01T10:13:41Z
Lists: pgsql-hackers
Attachments
- 0001-Use-get_greatest_modulus-in-partition_bounds_equal.patch (text/x-patch) patch 0001
Hi all, partition_bounds_equal() accesses the last datum from the given partition bounds directly to compare their greatest moduli. Rest of the code uses get_greatest_modulus() to get the greatest modulus from a partition bound. partition_bounds_equal() should also do the same for the sake of consistency and to make sure the in future the code remains sane if we change the way we store greatest modulus in PartitionBoundInfoData in future. -- Best Wishes, Ashutosh Bapat EnterpriseDB Corporation The Postgres Database Company
Commits
-
Minor code beautification in partition_bounds_equal.
- 35438e5763c3 11.0 landed