Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb22ac49

Browse files
committed
pathman: warnings fix
1 parentd50faed commitb22ac49

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ CREATE TABLE hash_rel (
123123
value INTEGER);
124124
INSERT INTO hash_rel (value) SELECT g FROM generate_series(1, 10000) as g;
125125
```
126-
Then run create_hash_partitions() function with appropriate arguments:
126+
If partitions are supposed to have indexes, then they should be created for parent table before partitioning. In this case pg_pathman will automaticaly create indexes for partitions.Then run create_hash_partitions() function with appropriate arguments:
127127
```
128128
SELECT create_hash_partitions('hash_rel', 'value', 100);
129129
```

‎README.rus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ CREATE TABLE hash_rel (
124124
value INTEGER);
125125
INSERT INTO hash_rel (value) SELECT g FROM generate_series(1, 10000) as g;
126126
```
127-
Разобьем таблицу`hash_rel` на 100 секций по полю`value`:
127+
Если дочерние секции подразумевают наличие индексов, то стоит их создать в родительской таблице до разбиения. Тогда при разбиении pg_pathman автоматически создаст соответствующие индексы в дочерних.таблицах.Разобьем таблицу`hash_rel` на 100 секций по полю`value`:
128128
```
129129
SELECT create_hash_partitions('hash_rel', 'value', 100);
130130
```

‎pg_pathman.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -644,9 +644,9 @@ handle_binary_opexpr(const PartRelationInfo *prel, WrapperNode *result,
644644
if (rangerel!=NULL)
645645
{
646646
RangeEntry*re;
647-
boolfound= false,
648-
lossy= false;
647+
boollossy= false;
649648
#ifdefUSE_ASSERT_CHECKING
649+
boolfound= false;
650650
intcounter=0;
651651
#endif
652652
intstartidx=0,
@@ -718,7 +718,9 @@ handle_binary_opexpr(const PartRelationInfo *prel, WrapperNode *result,
718718
lossy= false;
719719
else
720720
lossy= true;
721+
#ifdefUSE_ASSERT_CHECKING
721722
found= true;
723+
#endif
722724
break;
723725
}
724726

‎rangeset.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ irange_list_union(List *a, List *b)
5252

5353
while (ca||cb)
5454
{
55-
IndexRangenext;
55+
IndexRangenext=0;
5656

5757
/* Fetch next range with lesser lower bound */
5858
if (ca&&cb)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp