"Walker, Jed S" <Jed_Walker(at)cable(dot)comcast(dot)com> writes:
> I've noticed postgres uses some environment variables such as $PGDATA. Is
> there a standard postgres environment variable for the current database?
See
http://www.postgresql.org/docs/8.0/static/libpq-envars.html
regards, tom lane