export PGUSER in pre-hook