Skip to content

Commit c810aa5

Browse files
committed
documentation fix
1 parent 6643681 commit c810aa5

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ shared_preload_libraries = 'pg_pathman'
4545
```
4646
It will require to restart the PostgreSQL instance. Then execute following query in psql:
4747
```
48-
CREATE SCHEMA pathman;
49-
CREATE EXTENSION pg_pathman SCHEMA pathman;
48+
CREATE EXTENSION pg_pathman;
5049
```
5150

5251
## pg_pathman Functions

README.rus.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ shared_preload_libraries = 'pg_pathman'
4646
```
4747
Для вступления изменений в силу потребуется перезагрузка сервера PostgreSQL. Затем выполните в psql:
4848
```
49-
CREATE SCHEMA pathman;
50-
CREATE EXTENSION pg_pathman SCHEMA pathman;
49+
CREATE EXTENSION pg_pathman;
5150
```
5251

5352
## Функции pathman

pg_pathman.c

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "optimizer/pathnode.h"
1111
#include "optimizer/planner.h"
1212
#include "optimizer/restrictinfo.h"
13+
#include "optimizer/cost.h"
1314
#include "utils/hsearch.h"
1415
#include "utils/tqual.h"
1516
#include "utils/rel.h"
@@ -105,7 +106,7 @@ _PG_init(void)
105106
{
106107
elog(ERROR, "Pathman module must be initialized in postmaster. "
107108
"Put the following line to configuration file: "
108-
"shared_preload_library = 'pg_pathman'");
109+
"shared_preload_libraries='pg_pathman'");
109110
initialization_needed = false;
110111
}
111112

@@ -645,8 +646,10 @@ handle_binary_opexpr(const PartRelationInfo *prel, WrapperNode *result,
645646
RangeEntry *re;
646647
bool found = false,
647648
lossy = false;
648-
int counter = 0,
649-
startidx = 0,
649+
#ifdef USE_ASSERT_CHECKING
650+
int counter = 0;
651+
#endif
652+
int startidx = 0,
650653
cmp_min,
651654
cmp_max,
652655
endidx = rangerel->ranges.length - 1;

0 commit comments

Comments
 (0)