EXTRA_CLEAN = sql/ut_anyarray-*.sql expected/ut_anyarray-*.out \
sql/ut_imp_exp-*.sql expected/ut_imp_exp-*.out \
- sql/ut_fdw_init-*.sql expected/ut_fdw_init-*.out \
- pg_dbms_stats--1.0--1.3.2.sql export_plain_stats.sql.sample \
- export_effective_stats.sql.sample \
+ sql/ut_fdw_init.sql expected/ut_fdw_init.out \
export_stats.dmp ut-fdw.csv $(DATA) $(STARBALLS) RPMS/*/* \
*~
MAJORVERSION=9.3
endif
-TARSOURCES = Makefile *.c *.h pg_dbms_stats--*-9.*.sql pg_dbms_stats.control \
- export_*_stats-9.*.sql.sample COPYRIGHT \
- doc/* expected/*.out sql/*.sql input/*.source input/*.csv \
+TARSOURCES = Makefile *.c *.h \
+ $(EXTDIR)/pg_dbms_stats--*-9.*.sql \
+ pg_dbms_stats.control COPYRIGHT ChangeLog ChangeLog.ja \
+ README.installcheck regress.conf doc/* \
+ expected/init-*.out expected/ut-*.out \
+ sql/init-*.sql sql/ut-*.sql \
+ input/*.source input/*.csv \
output/*.source SPECS/*.spec
all: $(DATA) $(DOCS)
--- /dev/null
+Preparation for make installcheck
+
+1. Install pg_dbms_stats into the target binary tree. Make sure to
+ prpare 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 postgresql93-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