forked from ossc-db/pg_dbms_stats
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.installcheck
32 lines (20 loc) · 995 Bytes
/
README.installcheck
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Preparation for make installcheck
1. Install pg_dbms_stats into the target binary tree. Make sure to
prepare the PATH environment variable properly to execute the right
pg_config for the version of target PostgreSQL server.
postgres$ which pg_config
<somewhere bin of the target server resides>/pg_config
postgres$ make install
2. Install additionally required contrib module file_fdw. This could
be done for RPM installed server by installing postgresql##-contrib
using yum after installing additional repository.
# yum install postgresql96-contrib
3. Edit postgresql.conf so that pg_dbms stats will be automatically
loaded.
postgres$ echo "shared_preload_libraries = 'pg_dbms_stats'" >> <PGDATA>/postgresql.conf
4. Start the target server
postgres$ postgres or pg_ctl start
5. Install extension on the server.
postgres$ psql postgres -c 'CREATE EXTENSION pg_dbms_stats; CREATE EXTENSION file_fdw;'
6. run make installcheck
postgres$ make installcheck