Skip to content

Commit 8669fe7

Browse files
committed
update README.md
1 parent 6e64203 commit 8669fe7

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

‎README.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,19 @@ We encourage you to use `virtualenv` for your testing environment.
2020

2121
## Usage
2222

23-
> Note: by default testgres runs `initdb`, `pg_ctl`, `psql` provided by `PATH`. To specify a custom postgres installation, set the environment variable `PG_CONFIG` pointing to the `pg_config` executable: `export PG_CONFIG=/path/to/pg_config`.
23+
> Note: by default testgres runs `initdb`, `pg_ctl`, `psql` provided by `PATH`.
24+
25+
There are several ways to specify a custom postgres installation:
26+
27+
* export `PG_CONFIG` environment variable pointing to the `pg_config` executable;
28+
* export `PG_BIN` environment variable pointing to the directory with executable files.
29+
30+
Example:
31+
32+
```bash
33+
export PG_BIN=$HOME/pg_10/bin
34+
python my_tests.py
35+
```
2436

2537

2638
### Overview

0 commit comments

Comments
 (0)