Received: from mail.greatbasin.net (mail.greatbasin.net [207.228.35.39]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f5IIOka18190 for ; Mon, 18 Jun 2001 14:24:47 -0400 (EDT) (envelope-from jeremy@wellsgaming.com) Received: from [172.16.1.6] (rno-dsl0b-131.gbis.net [216.82.145.131]) by mail.greatbasin.net (8.9.3-MySQL-0.2.3b/8.9.3) with ESMTP id LAA24175 for ; Mon, 18 Jun 2001 11:24:44 -0700 (PDT) User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.02.2022 Date: Mon, 18 Jun 2001 11:25:24 -0700 Subject: Error on pg_dump From: Jeremy Buchmann To: pgsql-admin Message-ID: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Archive-Number: 200106/106 X-Sequence-Number: 1663 Hello, When I run pg_dump from a shell script called from cron, I get the following error for each invocation of pg_dump: 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, OS is Linux, and no backup happens when I get this error (the files are created bu their size is 0). If it helps, the shell script is below. Thanks, -- Jeremy [jeremy@wellsgaming.com] #!/usr/bin/bash DATE_NUM=`date +%w` sync pg_dump data1 > /foo/$DATE_NUM/data1.db sync pg_dump data2 > /foo/$DATE_NUM/data2.db sync pg_dump data3 > /foo/$DATE_NUM/data3.db sync