On Aug 12, 2010, at 1:27 AM, Thomas Goirand wrote:

> Clint,
> 
> FYI, I managed to have the test to work without using networking at all
> (just Unix socket), which is a way safer than what you did.
> 
> Attached to this email is my ./debian/test_mysql.sh.
> 

Sweet!

I'd like to see a comment in there explaining that MYSQL_UNIX_PORT is used by 
test_dbi indirectly via libmysqlclient, as its not exactly obvious how things
are working.

> I'm now working on doing the same thing with pgsql. I hope it wont be
> too different, because I don't know much about Postgresql.
> 

Don't know why I didn't think of exploiting the environment.

http://www.postgresql.org/docs/8.4/static/libpq-envars.html

Looks like you can set PGHOST=$PG_TMPDIR

Just have to specify them to postgres on the command line, this should do it:

postgres -k $PG_TMPDIR -D $PG_TMPDIR -h ''

Attached script does just that (tho still depends on my run_test_driver.sh)

Attachment: test_postgres.sh
Description: Binary data

Reply via email to