OSDN Git Service

Add instruction for installcheck.
authorKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Fri, 6 Jun 2014 07:50:41 +0000 (16:50 +0900)
committerKyotaro Horiguchi <horiguchi.kyotaro@lab.ntt.co.jp>
Mon, 9 Jun 2014 06:28:23 +0000 (15:28 +0900)
Makefile
README.installcheck [new file with mode: 0644]

index a06a180..5db6c77 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -31,9 +31,7 @@ STARBALLS = $(STARBALL) $(STARBALL94s) $(STARBALL93) $(STARBALL92) $(STARBALL91)
 
 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/*/* \
        *~
 
@@ -58,9 +56,13 @@ ifeq "$(MAJORVERSION)" "9.4"
 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)
diff --git a/README.installcheck b/README.installcheck
new file mode 100644 (file)
index 0000000..6e8c001
--- /dev/null
@@ -0,0 +1,32 @@
+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