Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [GENERAL] strange message from pg_dumpall

From: Thomas Pundt <mlists(at)rp-online.de>
Date: Wed Oct 31 2007 - 07:52:00 EDT


On Mittwoch, 31. Oktober 2007, Joao Miguel Ferreira wrote:
| I got surprised by this message:
|
| -------------------------------------
| The program "pg_dump" is needed by pg_dumpall but was not found in the
| same directory as "/usr/bin/pg_dumpall".
| Check your installation.
| --------------------------------------
[...]
| This is what I do:
|
| system("su postgres -c \"pg_dumpall --clean > some_file\"");

I'd try "su - postgres ..."; this will use postgres' environment here.

| 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 incomplete uninstall of a PostgreSQL installation?

Ciao,
Thomas

-- 
Thomas Pundt <
thomas.pundt(at)rp-online.de> ---- 
http://rp-online.de/ ----

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

               
http://www.postgresql.org/docs/faq
Received on Wed Oct 31 12:18:13 2007

This archive was generated by hypermail 2.1.8 : Mon Jun 16 2008 - 19:08:54 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library