aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-19 12:37:23 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2018-04-19 12:39:13 -0300
commit2d625176c013ed185250aab3f8a1d175d81d4f3b (patch)
tree77ad65fe6517dac11090dee883538a6f2bcd52af
parente5dcbb88a15d445e0ccb3db3194f4a122b792df6 (diff)
downloadpostgresql-2d625176c013ed185250aab3f8a1d175d81d4f3b.tar.gz
postgresql-2d625176c013ed185250aab3f8a1d175d81d4f3b.zip
Plural of modulus is moduli
-rw-r--r--src/backend/partitioning/partbounds.c6
-rw-r--r--src/backend/utils/cache/partcache.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/src/backend/partitioning/partbounds.c b/src/backend/partitioning/partbounds.c
index 229ce3ff5c9..09c7c3e2522 100644
--- a/src/backend/partitioning/partbounds.c
+++ b/src/backend/partitioning/partbounds.c
@@ -130,7 +130,7 @@ partition_bounds_equal(int partnatts, int16 *parttyplen, bool *parttypbyval,
return false;
/*
- * We arrange the partitions in the ascending order of their modulus
+ * We arrange the partitions in the ascending order of their moduli
* and remainders. Also every modulus is factor of next larger
* modulus. Therefore we can safely store index of a given partition
* in indexes array at remainder of that partition. Also entries at
@@ -744,7 +744,7 @@ check_default_allows_bound(Relation parent, Relation default_rel,
*
* Returns the greatest modulus of the hash partition bound. The greatest
* modulus will be at the end of the datums array because hash partitions are
- * arranged in the ascending order of their modulus and remainders.
+ * arranged in the ascending order of their moduli and remainders.
*/
int
get_hash_partition_greatest_modulus(PartitionBoundInfo bound)
@@ -912,7 +912,7 @@ partition_rbound_datum_cmp(FmgrInfo *partsupfunc, Oid *partcollation,
/*
* partition_hbound_cmp
*
- * Compares modulus first, then remainder if modulus are equal.
+ * Compares modulus first, then remainder if modulus is equal.
*/
int32
partition_hbound_cmp(int modulus1, int remainder1, int modulus2, int remainder2)
diff --git a/src/backend/utils/cache/partcache.c b/src/backend/utils/cache/partcache.c
index e2f677a46a4..833246ee87f 100644
--- a/src/backend/utils/cache/partcache.c
+++ b/src/backend/utils/cache/partcache.c
@@ -612,7 +612,7 @@ RelationBuildPartitionDesc(Relation rel)
{
case PARTITION_STRATEGY_HASH:
{
- /* Modulus are stored in ascending order */
+ /* Moduli are stored in ascending order */
int greatest_modulus = hbounds[ndatums - 1]->modulus;
boundinfo->indexes = (int *) palloc(greatest_modulus *