Re: strange message from pg_dumpall

From: Joao Miguel Ferreira <joao(dot)mc(dot)ferreira(at)criticalsoftware(dot)com>
To: Thomas Pundt <thomas(dot)pundt(at)rp-online(dot)de>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: strange message from pg_dumpall
Date: 2007-10-31 12:19:16
Message-ID: 1193833156.4079.12.camel@azagthot.critical.pt
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> | system("su postgres -c \"pg_dumpall --clean > some_file\"");
>
> I'd try "su - postgres ..."; this will use postgres' environment here.
>

That was a good one but still didn't work....

> | this is run from within a Perl module called from within a Perl script.
> |
> | I've tried the same command directlly on the shell and it works fine.
> | But from the perl script it complaints about pg_dump !!!???
>
> What does "type -a pg_dump" output? Maybe it's a leftover from an

it returns /usr/bin/pg_dump, just like 'which pd_dump' does !!!

well, never mind I found a diferent solution... I run the command from
within a shell script and just have the Perl call that script... it's
working... thx

joao

> incomplete uninstall of a PostgreSQL installation?
>
> Ciao,
> Thomas
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message João Paulo Zavanela 2007-10-31 12:23:13 Re: active connections
Previous Message João Paulo Zavanela 2007-10-31 11:56:12 Re: configure password