From: | Ryan Murphy <ryanfmurphy(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: 1 test fails in make installcheck-world - database "regress_ecpg_user2" does not exist |
Date: | 2017-08-28 13:47:17 |
Message-ID: | CAHeEsBc6EQe0mxGBKDXAwJbntgfvoAd5MQC-5362SmC3Tng_6g@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> No, you're reading it backwards: the error is expected, but it's not
> appearing in your results. I can duplicate this if I manually create
> database "regress_ecpg_user2" before running ecpg's installcheck,
> so I guess that's what you did. I can find no evidence that any
> part of the PG regression tests creates such a database.
>
Thanks, that makes sense. However, when I go into my database
with psql and type `drop database regress_ecpg_user2;`, the
response is "ERROR: database "regress_ecpg_user2" does not exist".
So it seems either the tests are creating it somehow and then cleaning
it up (though I agree that I found no obvious evidence of that in the
codebase), or could I be looking in the wrong postgres install?
I think it's the same install though. I have my postgres installing into an
install_dir/ directory. Here's how I run configure:
#!/bin/sh
CFLAGS='-O0' ./configure \
--prefix=path/to/postgres/install_dir/ \
--with-uuid=e2fs \
--enable-debug \
--with-perl
I did notice that the test seems to create a ROLE called regress_ecpg_user2:
$ git grep -n 'regress_ecpg_user2'
src/interfaces/ecpg/test/Makefile:78:REGRESS_OPTS =
--dbname=ecpg1_regression,ecpg2_regression
--create-role=regress_ecpg_user1,regress_ecpg_user2 $(EXTRA_REGRESS_OPTS)
...
Could that implicitly create a database too? I know that I somehow have a
database named after my username / postgres role "murftown".
I ran "make installcheck-world" again, and, the result is different this
time -
a test called "misc_sanity" failed early on in the tests:
$ make installcheck-world
make -C src/test installcheck
make -C perl installcheck
make[2]: Nothing to be done for `installcheck'.
make -C regress installcheck
...
============== dropping database "regression" ==============
DROP DATABASE
============== creating database "regression" ==============
CREATE DATABASE
ALTER DATABASE
============== running regression test queries ==============
test tablespace ... ok
test boolean ... ok
test char ... ok
...
test regex ... ok
test oidjoins ... ok
test type_sanity ... ok
test opr_sanity ... ok
test misc_sanity ... FAILED
test comments ... ok
test expressions ... ok
test insert ... ok
test insert_conflict ... ok
test create_function_1 ... ok
...
The old failure with the missing error message is gone from
regression.diffs this time.
I've attached the new regression.diffs.
Best,
Ryan
Attachment | Content-Type | Size |
---|---|---|
regression2.diffs | application/octet-stream | 1.6 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2017-08-28 14:04:43 | Re: 1 test fails in make installcheck-world - database "regress_ecpg_user2" does not exist |
Previous Message | Alvaro Herrera | 2017-08-28 13:05:45 | Re: [COMMITTERS] pgsql: pg_rewind: Fix some problems when copying files >2GB. |