From: Richard Huxton <dev@archonet.com>
To: Kumar <sgnerd@yahoo.com.sg>
To: \"psql\" <pgsql-sql@postgresql.org>
Subject: Re: Fw: Backup error - Pls help
Date: Mon, 22 Sep 2003 13:51:59 +0100
Message-ID: <200309221351.59600.dev@archonet.com> (raw)
In-Reply-To: <00ae01c38103$412f26c0$7502a8c0@hdsc.com>
References: <00ae01c38103$412f26c0$7502a8c0@hdsc.com>
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
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 using the --to and --cc options:
reply via email
To: pgsql-sql@postgresql.org
Cc: dev@archonet.com, sgnerd@yahoo.com.sg
Subject: Re: Fw: Backup error - Pls help
In-Reply-To: <200309221351.59600.dev@archonet.com>
* 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