Warren Little <wlittle@securitylending.com> writes:
> -bash-2.05b$ dropdb prodcopy
> ERROR: Postmaster environment variable 'PGDATA2' not set
> dropdb: database removal failed
> The PGDATA2 variable is set in my environment.
... but, evidently, not in the *postmaster's* environment.
regards, tom lane