pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
BUG #17281: How specify regress database?
3+ messages / 3 participants
[nested] [flat]

* BUG #17281: How specify regress database?
@ 2021-11-11 09:08  PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Bug reporting form @ 2021-11-11 09:08 UTC (permalink / raw)
  To: pgsql-bugs@lists.postgresql.org; +Cc: rekgrpth@gmail.com

The following bug has been logged on the website:

Bug reference:      17281
Logged by:          RekGRpth
Email address:      rekgrpth@gmail.com
PostgreSQL version: 14.0
Operating system:   docker alpine
Description:        

I try
1) add in Makefile
CONTRIB_TESTDB = postgres
2) add in Makefile
REGRESS_OPTS = --use-existing --dbname=postgres
3) add in Makefile
EXTRA_REGRESS_OPTS = --use-existing --dbname=postgres
4) before calling make installcheck
export CONTRIB_TESTDB=postgres
but results everything is same:
/usr/lib/postgresql/pgxs/src/makefiles/../../src/test/regress/pg_regress
--inputdir=./ --bindir='/usr/bin'    --use-existing --dbname=postgres
--dbname=contrib_regression extension
i.e. pgxs places --dbname=contrib_regression in last option due to
https://www.postgresql.org/message-id/flat/14108.1314148639%40sss.pgh.pa.us



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #17281: How specify regress database?
@ 2021-11-11 19:53  Euler Taveira <euler@eulerto.com>
  parent: PG Bug reporting form <noreply@postgresql.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Euler Taveira @ 2021-11-11 19:53 UTC (permalink / raw)
  To: rekgrpth@gmail.com; pgsql-bugs@lists.postgresql.org

On Thu, Nov 11, 2021, at 6:08 AM, PG Bug reporting form wrote:
> I try
> 1) add in Makefile
> CONTRIB_TESTDB = postgres
> 2) add in Makefile
> REGRESS_OPTS = --use-existing --dbname=postgres
> 3) add in Makefile
> EXTRA_REGRESS_OPTS = --use-existing --dbname=postgres
> 4) before calling make installcheck
> export CONTRIB_TESTDB=postgres
> but results everything is same:
> /usr/lib/postgresql/pgxs/src/makefiles/../../src/test/regress/pg_regress
> --inputdir=./ --bindir='/usr/bin'    --use-existing --dbname=postgres
> --dbname=contrib_regression extension
> i.e. pgxs places --dbname=contrib_regression in last option due to
> https://www.postgresql.org/message-id/flat/14108.1314148639%40sss.pgh.pa.us
> 
This is not a bug. Use the appropriate list for your question next time.

AFAICS there is not a configurable way to change the CONTRIB_TESTDB. Unless,
you modify Makefile.global.in. You might modify configure.ac to inform a
configurable database for the CONTRIB_TESTDB too.


--
Euler Taveira
EDB   https://www.enterprisedb.com/

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: BUG #17281: How specify regress database?
@ 2021-11-11 20:49  Tom Lane <tgl@sss.pgh.pa.us>
  parent: Euler Taveira <euler@eulerto.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Tom Lane @ 2021-11-11 20:49 UTC (permalink / raw)
  To: Euler Taveira <euler@eulerto.com>; +Cc: rekgrpth@gmail.com; pgsql-bugs@lists.postgresql.org

"Euler Taveira" <euler@eulerto.com> writes:
> This is not a bug. Use the appropriate list for your question next time.

Indeed.

> AFAICS there is not a configurable way to change the CONTRIB_TESTDB.

Doesn't it work to set that after including the global Makefile?
I thought make's rule was last-one-wins.  Another thing worth
experimenting with is to set it using ":=" rather than "=".

Also, it should work to override it from the command line, viz

      make check CONTRIB_TESTDB=foo

although I gather the OP wants to set it in his own Makefile.

			regards, tom lane





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2021-11-11 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2021-11-11 09:08 BUG #17281: How specify regress database? PG Bug reporting form <noreply@postgresql.org>
2021-11-11 19:53 ` Euler Taveira <euler@eulerto.com>
2021-11-11 20:49   ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox