Updated regression tests to use CREATE EXTENSION for PostgreSQL 9.1 or higher.
This commit is contained in:
parent
e9d4ef2557
commit
69cc976b39
30
bin/Makefile
30
bin/Makefile
@ -1,7 +1,7 @@
|
||||
#
|
||||
# pg_reorg: bin/Makefile
|
||||
#
|
||||
# Portions Copyright (c) 2008-2011, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
||||
# Portions Copyright (c) 2008-2012, NIPPON TELEGRAPH AND TELEPHONE CORPORATION
|
||||
# Portions Copyright (c) 2011, Itagaki Takahiro
|
||||
#
|
||||
SRCS = pg_reorg.c pgut/pgut.c pgut/pgut-fe.c
|
||||
@ -37,3 +37,31 @@ endif
|
||||
# remove dependency to libxml2 and libxslt
|
||||
LIBS := $(filter-out -lxml2, $(LIBS))
|
||||
LIBS := $(filter-out -lxslt, $(LIBS))
|
||||
|
||||
ifndef MAJORVERSION
|
||||
MAJORVERSION := $(basename $(VERSION))
|
||||
endif
|
||||
|
||||
sql/init.sql: sql/init-$(MAJORVERSION).sql
|
||||
cp sql/init-$(MAJORVERSION).sql sql/init.sql
|
||||
expected/init.out: expected/init-$(MAJORVERSION).out
|
||||
cp expected/init-$(MAJORVERSION).out expected/init.out
|
||||
sql/init-8.3.sql:
|
||||
cp sql/init-legacy.sql sql/init-8.3.sql
|
||||
sql/init-8.4.sql:
|
||||
cp sql/init-legacy.sql sql/init-8.4.sql
|
||||
sql/init-9.0.sql:
|
||||
cp sql/init-legacy.sql sql/init-9.0.sql
|
||||
sql/init-9.1.sql:
|
||||
cp sql/init-extension.sql sql/init-9.1.sql
|
||||
sql/init-9.2.sql:
|
||||
cp sql/init-extension.sql sql/init-9.2.sql
|
||||
sql/init-9.3.sql:
|
||||
cp sql/init-extension.sql sql/init-9.3.sql
|
||||
|
||||
.PHONY: subclean
|
||||
clean: subclean
|
||||
subclean:
|
||||
rm -f sql/init.sql sql/init-{8.3,8.4,9.0,9.1,9.2,9.3}.sql
|
||||
|
||||
installcheck: sql/init.sql
|
||||
|
5
bin/sql/init-extension.sql
Normal file
5
bin/sql/init-extension.sql
Normal file
@ -0,0 +1,5 @@
|
||||
SET client_min_messages = warning;
|
||||
\set ECHO none
|
||||
CREATE EXTENSION pg_reorg;
|
||||
\set ECHO all
|
||||
RESET client_min_messages;
|
0
bin/sql/init.sql → bin/sql/init-legacy.sql
Executable file → Normal file
0
bin/sql/init.sql → bin/sql/init-legacy.sql
Executable file → Normal file
Loading…
x
Reference in New Issue
Block a user