Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 1a88243

Browse files
authored
Make README.md more clear on make PG_CONFIG=...
1 parent 6ca926c commit 1a88243

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,19 @@ More interesting features are yet to come. Stay tuned!
7272

7373
## Installation guide
7474
To install `pg_pathman`, execute this in the module's directory:
75+
7576
```shell
7677
make install USE_PGXS=1
7778
```
79+
80+
> **Important:** Don't forget to set the `PG_CONFIG` variable (`make PG_CONFIG=...`) in case you want to test `pg_pathman` on a non-default or custom build of PostgreSQL. Read more [here](https://wiki.postgresql.org/wiki/Building_and_Installing_PostgreSQL_Extension_Modules).
81+
7882
Modify the **`shared_preload_libraries`** parameter in `postgresql.conf` as following:
83+
7984
```
8085
shared_preload_libraries = 'pg_pathman'
8186
```
87+
8288
> **Important:** `pg_pathman` may cause conflicts with some other extensions that use the same hook functions. For example, `pg_pathman` uses `ProcessUtility_hook` to handle COPY queries for partitioned tables, which means it may interfere with `pg_stat_statements` from time to time. In this case, try listing libraries in certain order: `shared_preload_libraries = 'pg_stat_statements, pg_pathman'`.
8389
8490
It is essential to restart the PostgreSQL instance. After that, execute the following query in psql:
@@ -88,8 +94,6 @@ CREATE EXTENSION pg_pathman;
8894

8995
Done! Now it's time to setup your partitioning schemes.
9096

91-
> **Important:** Don't forget to set the `PG_CONFIG` variable in case you want to test `pg_pathman` on a custom build of PostgreSQL. Read more [here](https://wiki.postgresql.org/wiki/Building_and_Installing_PostgreSQL_Extension_Modules).
92-
9397
## How to update
9498
In order to update pg_pathman:
9599

0 commit comments

Comments
 (0)