diff -ruN postgresql-7.4.8-old/src/test/regress/pg_regress.sh postgresql-7.4.8/src/test/regress/pg_regress.sh
--- postgresql-7.4.8-old/src/test/regress/pg_regress.sh	2003-11-02 23:56:15.000000000 +0200
+++ postgresql-7.4.8/src/test/regress/pg_regress.sh	2005-07-15 11:04:35.000000000 +0300
@@ -5,6 +5,9 @@
 : ${TMPDIR=/tmp}
 TMPFILE=$TMPDIR/pg_regress.$$
 
+postmaster_options="-c unix_socket_directory=/tmp"
+psql_options='-h /tmp'
+
 help="\
 PostgreSQL regression test driver
 
