pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Stefan Huber <schweinsaug@crosswinds.net>
To: pgsql-admin@postgresql.org
Subject: RE: ???solution??? --> can't run pg_dump in sh script usi ng crontab
Date: Sat, 10 Feb 2001 16:29:30 +0100
Message-ID: <5.0.2.1.0.20010210162458.00a02ec0@pop.crosswinds.net> (raw)
In-Reply-To: <D15F32DE6D70D411814400508B4492ED55EC65@SVRSPBEXCH01>


>"/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 <dbname>'

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




view thread (3+ messages)

Message-ID: <5.0.2.1.0.20010210162458.00a02ec0@pop.crosswinds.net>
Permalink:  ../5.0.2.1.0.20010210162458.00a02ec0@pop.crosswinds.net/
Also on:    postgresql.org/message-id/5.0.2.1.0.20010210162458.00a02ec0@pop.crosswinds.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: schweinsaug@crosswinds.net
  Subject: Re: ???solution??? --> can't run pg_dump in sh script usi ng crontab
  In-Reply-To: <5.0.2.1.0.20010210162458.00a02ec0@pop.crosswinds.net>
  References: <D15F32DE6D70D411814400508B4492ED55EC65@SVRSPBEXCH01> <5.0.2.1.0.20010210162458.00a02ec0@pop.crosswinds.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox