Skip to content

Commit

Permalink
Removed awful hack. 9.0's pg_regress now uses the new CREATE OR
Browse files Browse the repository at this point in the history
REPLACE LANGUAGE, which means it doesn't break when we load PL/pgsql.
  • Loading branch information
David Fetter committed Feb 24, 2010
1 parent 23de4a5 commit fa1081e
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Expand Up @@ -2,11 +2,7 @@ NAME = plparrot
MODULE_big = src/plparrot
OBJS= src/plparrot.o
DATA_built = plparrot.sql
REGRESS_OPTS = --dbname=$(PL_TESTDB)
NEEDS_PLPGSQL = $(shell psql -Atc "SELECT setting::int < 90000 FROM pg_catalog.pg_settings WHERE name='server_version_num'")
ifeq ($(NEEDS_PLPGSQL), "t")
REGRESS_OPTS += $(if $PG_VERSION < 90000," --load-language=plpgsql", "")
endif
REGRESS_OPTS = --dbname=$(PL_TESTDB) --load-language=plpgsql
TESTS = $(wildcard t/sql/*.sql)
REGRESS = $(patsubst t/sql/%.sql,%,$(TESTS))

Expand Down

0 comments on commit fa1081e

Please sign in to comment.