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

Commit702d966

Browse files
committed
verions support
1 parent74d8413 commit702d966

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

‎README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Based on partitioning type and operator the `pathman` searches corresponding par
3737

3838
To install pathman run in pathman directory:
3939
```
40-
make install
40+
make install USE_PGXS=1
4141
```
4242
Modify shared_preload_libraries parameter in postgres.conf as following:
4343
```

‎README.rus.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ WHERE id = 150
3838

3939
Для установки pathman выполните в директории модуля команду:
4040
```
41-
make install
41+
make install USE_PGXS=1
4242
```
4343
Модифицируйте параметр shared_preload_libraries в конфигурационном файле postgres.conf:
4444
```

‎init.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,8 +168,11 @@ create_relations_hashtable()
168168
/* Already exists, recreate */
169169
if (relations!=NULL)
170170
hash_destroy(relations);
171-
171+
#ifPG_VERSION_NUM >=90600
172172
relations=ShmemInitHash("Partitioning relation info",1024,&ctl,HASH_ELEM);
173+
#else
174+
relations=ShmemInitHash("Partitioning relation info",1024,1024,&ctl,HASH_ELEM);
175+
#endif
173176
}
174177

175178
/*
@@ -431,8 +434,13 @@ create_range_restrictions_hashtable()
431434
memset(&ctl,0,sizeof(ctl));
432435
ctl.keysize=sizeof(int);
433436
ctl.entrysize=sizeof(RangeRelation);
437+
#ifPG_VERSION_NUM >=90600
434438
range_restrictions=ShmemInitHash("pg_pathman range restrictions",
435439
1024,&ctl,HASH_ELEM |HASH_BLOBS);
440+
#else
441+
range_restrictions=ShmemInitHash("pg_pathman range restrictions",
442+
1024,1024,&ctl,HASH_ELEM |HASH_BLOBS);
443+
#endif
436444
}
437445

438446
/*

‎regression.diffs

Whitespace-only changes.

‎regression.out

Whitespace-only changes.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp