Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
2d625176
Commit
2d625176
authored
Apr 19, 2018
by
Alvaro Herrera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Plural of modulus is moduli
parent
e5dcbb88
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/backend/partitioning/partbounds.c
src/backend/partitioning/partbounds.c
+3
-3
src/backend/utils/cache/partcache.c
src/backend/utils/cache/partcache.c
+1
-1
No files found.
src/backend/partitioning/partbounds.c
View file @
2d625176
...
@@ -130,7 +130,7 @@ partition_bounds_equal(int partnatts, int16 *parttyplen, bool *parttypbyval,
...
@@ -130,7 +130,7 @@ partition_bounds_equal(int partnatts, int16 *parttyplen, bool *parttypbyval,
return
false
;
return
false
;
/*
/*
* We arrange the partitions in the ascending order of their modul
us
* We arrange the partitions in the ascending order of their modul
i
* and remainders. Also every modulus is factor of next larger
* and remainders. Also every modulus is factor of next larger
* modulus. Therefore we can safely store index of a given partition
* modulus. Therefore we can safely store index of a given partition
* in indexes array at remainder of that partition. Also entries at
* in indexes array at remainder of that partition. Also entries at
...
@@ -744,7 +744,7 @@ check_default_allows_bound(Relation parent, Relation default_rel,
...
@@ -744,7 +744,7 @@ check_default_allows_bound(Relation parent, Relation default_rel,
*
*
* Returns the greatest modulus of the hash partition bound. The greatest
* 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
* modulus will be at the end of the datums array because hash partitions are
* arranged in the ascending order of their modul
us
and remainders.
* arranged in the ascending order of their modul
i
and remainders.
*/
*/
int
int
get_hash_partition_greatest_modulus
(
PartitionBoundInfo
bound
)
get_hash_partition_greatest_modulus
(
PartitionBoundInfo
bound
)
...
@@ -912,7 +912,7 @@ partition_rbound_datum_cmp(FmgrInfo *partsupfunc, Oid *partcollation,
...
@@ -912,7 +912,7 @@ partition_rbound_datum_cmp(FmgrInfo *partsupfunc, Oid *partcollation,
/*
/*
* partition_hbound_cmp
* partition_hbound_cmp
*
*
* Compares modulus first, then remainder if modulus
are
equal.
* Compares modulus first, then remainder if modulus
is
equal.
*/
*/
int32
int32
partition_hbound_cmp
(
int
modulus1
,
int
remainder1
,
int
modulus2
,
int
remainder2
)
partition_hbound_cmp
(
int
modulus1
,
int
remainder1
,
int
modulus2
,
int
remainder2
)
...
...
src/backend/utils/cache/partcache.c
View file @
2d625176
...
@@ -612,7 +612,7 @@ RelationBuildPartitionDesc(Relation rel)
...
@@ -612,7 +612,7 @@ RelationBuildPartitionDesc(Relation rel)
{
{
case
PARTITION_STRATEGY_HASH
:
case
PARTITION_STRATEGY_HASH
:
{
{
/* Modul
us
are stored in ascending order */
/* Modul
i
are stored in ascending order */
int
greatest_modulus
=
hbounds
[
ndatums
-
1
]
->
modulus
;
int
greatest_modulus
=
hbounds
[
ndatums
-
1
]
->
modulus
;
boundinfo
->
indexes
=
(
int
*
)
palloc
(
greatest_modulus
*
boundinfo
->
indexes
=
(
int
*
)
palloc
(
greatest_modulus
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment