X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id B46CED1BC59 for ; Mon, 22 Sep 2003 12:52:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 23678-03 for ; Mon, 22 Sep 2003 09:52:01 -0300 (ADT) Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by svr1.postgresql.org (Postfix) with ESMTP id D3C08D1B54D for ; Mon, 22 Sep 2003 09:51:57 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-31.mail.demon.net with esmtp (Exim 3.35 #1) id 1A1QAb-000JCa-0V; Mon, 22 Sep 2003 13:52:01 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 187AF16EB5; Mon, 22 Sep 2003 13:52:00 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id 733DC169FB; Mon, 22 Sep 2003 13:51:59 +0100 (BST) From: Richard Huxton To: "Kumar" , "\"psql\"" Subject: Re: Fw: Backup error - Pls help Date: Mon, 22 Sep 2003 13:51:59 +0100 User-Agent: KMail/1.5 References: <00ae01c38103$412f26c0$7502a8c0@hdsc.com> In-Reply-To: <00ae01c38103$412f26c0$7502a8c0@hdsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309221351.59600.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/249 X-Sequence-Number: 15227 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