]> granicus.if.org Git - postgresql/commit
Fix pgxs.mk to always add --dbname=$(CONTRIB_TESTDB) to REGRESS_OPTS.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Aug 2011 19:16:23 +0000 (15:16 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 24 Aug 2011 19:17:03 +0000 (15:17 -0400)
commit5354abb8f69734ff1c07cee5e29845b74d46e9d6
tree41ce669b9550d8668a78f72d7bd2dac0cd2bf64f
parented1a4adbe38ed94cc2e3c017a9f5be4b282bccb9
Fix pgxs.mk to always add  --dbname=$(CONTRIB_TESTDB) to REGRESS_OPTS.

The previous coding resulted in contrib modules unintentionally overriding
the use of CONTRIB_TESTDB.  There seems no particularly good reason to
allow that (after all, the makefile can set CONTRIB_TESTDB if that's really
what it intends).

In passing, document REGRESS_OPTS where the other pgxs.mk options are
documented.

Back-patch to 9.1 --- in prior versions, there were no cases of contrib
modules setting REGRESS_OPTS without including the --dbname switch, so
while the coding was fragile there was no actual bug.
contrib/sepgsql/Makefile
doc/src/sgml/extend.sgml
src/makefiles/pgxs.mk