Received: from email01.aon.at (WARSL401PIP1.highway.telekom.at [195.3.96.69]) by mail.postgresql.org (8.11.1/8.11.1) with SMTP id f1AFKux58261 for ; Sat, 10 Feb 2001 10:20:56 -0500 (EST) (envelope-from schweinsaug@crosswinds.net) Received: (qmail 269740 invoked from network); 10 Feb 2001 15:20:51 -0000 Received: from l0229p13.dipool.highway.telekom.at (HELO neptun.crosswinds.net) ([62.46.92.141]) (envelope-sender ) by qmail1.highway.telekom.at (qmail-ldap-1.03) with SMTP for ; 10 Feb 2001 15:20:51 -0000 Message-Id: <5.0.2.1.0.20010210162458.00a02ec0@pop.crosswinds.net> X-Sender: schweinsaug@pop.crosswinds.net X-Mailer: QUALCOMM Windows Eudora Version 5.0.2 Date: Sat, 10 Feb 2001 16:29:30 +0100 To: pgsql-admin@postgresql.org From: Stefan Huber Subject: RE: ???solution??? --> can't run pg_dump in sh script usi ng crontab In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Archive-Number: 200102/68 X-Sequence-Number: 668 >"/opt/postgresql/bin/pg_dump: error in loading shared libraries: >libpq.so.2.1: cannot open shared object file: No such file or directory" ah, that explains much. >"You can just put the postgresql lib directory in /etc/ld.so.conf and run >ldconfig." Yes, that's it > But I have a question: is this solution enough for successful pg_dump >or I have to do something else to exclude failure ? Maybe, as I stated before, you might needt to allow root to access the databases or to run your pg_dump-script as su - oracle -c 'pg_dump ' If your database user (oracle) has PG_LIB (I don't remember the variable exactly, but it's something like that, take a look at the INSTALL file in the postgresql-source tree) set, then you don't even need ldconfig. Stefan