Jeremy Buchmann <jeremy@wellsgaming.com> writes:
> getAggregates(): SELECT failed. Explanation from backend: 'ERROR:
> Attribute 'aggtransfn1' not found
> But when I run the script from the command line, it works fine. PG version
> is 7.1.2,
You're invoking a pre-7.1 pg_dump. Check the PATH used by your script.
regards, tom lane