Let installcheck-world pass against a server requiring a password.
Noah Misch <noah@leadboat.com>
Let installcheck-world pass against a server requiring a password. Give passwords to each user created in support of an ECPG connection test case. Use SET SESSION AUTHORIZATION, not a fresh connection, to reduce privileges during a dblink test case. To test against such a server, both the "make installcheck-world" environment and the postmaster environment must provide the default user's password; $PGPASSFILE is the principal way to do so. (The postmaster environment needs it for dblink and postgres_fdw tests.)
Files
| Path | Change | +/− |
|---|---|---|
| contrib/dblink/expected/dblink.out | modified | +4 −5 |
| contrib/dblink/sql/dblink.sql | modified | +4 −5 |
| src/interfaces/ecpg/test/connect/test5.pgc | modified | +10 −8 |
| src/interfaces/ecpg/test/expected/connect-test5.c | modified | +44 −38 |
| src/interfaces/ecpg/test/expected/connect-test5.stderr | modified | +13 −5 |