Re: Fw: Backup error - Pls help

From: Richard Huxton <dev(at)archonet(dot)com>
To: "Kumar" <sgnerd(at)yahoo(dot)com(dot)sg>, "\"psql\"" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Fw: Backup error - Pls help
Date: 2003-09-22 12:51:59
Message-ID: 200309221351.59600.dev@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Monday 22 September 2003 13:15, Kumar wrote:
> Dear Friend,
> I understood what you are saying. But could you pls tell me how to change
> the path of the pg_dump so that it should point to
> /usr/local/pgsql/bin/pg_dump

There's a guide on the Linux Documentation Project here:
http://www.tldp.org/HOWTO/Path.html
but it might not be RedHat specific (if that's what you are running).

You probably want to look at /etc/profile - this should be where your path is
set. It also runs all the files in /etc/profile.d/ (on RedHat)

Perhaps the best method, if you want to keep both versions of PG is to rename
the "wrong" pg_dump to pg_dump.alt and then you can do (as root)

# cd /usr/bin
# ln -s ../local/pgsql/bin/pg_dump

This will create a link from /usr/bin/pg_dump to /usr/local/pgsql/bin/pg_dump
which should make it your default.
You can still run the old version as pg_dump.alt - this should help to ensure
you know which one you are running.

HTH
--
Richard Huxton
Archonet Ltd

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Christoph Haller 2003-09-22 13:25:14 Re: selecting duplicate records
Previous Message Kumar 2003-09-22 12:15:42 Fw: Backup error - Pls help