Fw: Backup error - Pls help

From: "Kumar" <sgnerd(at)yahoo(dot)com(dot)sg>
To: "\"Richard Huxton\"" <dev(at)archonet(dot)com>, "\"psql\"" <pgsql-sql(at)postgresql(dot)org>
Subject: Fw: Backup error - Pls help
Date: 2003-09-22 12:15:42
Message-ID: 00ae01c38103$412f26c0$7502a8c0@hdsc.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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

Please help

----- Original Message -----
From: "Kumar" <sgnerd(at)yahoo(dot)com(dot)sg>
To: "Richard Huxton" <dev(at)archonet(dot)com>; "psql" <pgsql-sql(at)postgresql(dot)org>
Sent: Monday, September 22, 2003 5:16 PM
Subject: Re: [SQL] Backup error - Pls help

> While I issue
> which pg_dump it is showed me
> /usr/local/pg_dump
>
> But how to run the backup utility pg_dump to backup my database.
>
> ----- Original Message -----
> From: "Richard Huxton" <dev(at)archonet(dot)com>
> To: "Kumar" <sgnerd(at)yahoo(dot)com(dot)sg>; "psql" <pgsql-sql(at)postgresql(dot)org>
> Sent: Monday, September 22, 2003 3:20 PM
> Subject: Re: [SQL] Backup error - Pls help
>
>
> > On Monday 22 September 2003 10:01, Kumar wrote:
> > > Hi,
> > >
> > > I have 2 versions of Postgres server 7.2 & 7.3.4 installed on Linux
> server
> > > 7.3. I have not started the Postgres Server 7.2 which is located at
> > > /var/library/pgsql.
> >
> > RedHat 7.3 I guess you mean?
> >
> > > I am running and using only 7.3.4 located at /usr/local/pgsql.
> > >
> > > After I login, I come to the /usr/local/pgsql/bin and then issued the
> > > following
> > >
> > >
> > > [usr1(at)Linuxsvr bin]$ pg_dump -h 192.168.2.51 -f /home/usr1/prod.sql
prod
> > > pg_dump: server version: pg_dump.mo; pg_dump version: 7.2.1
> > > pg_dump: aborting because of version mismatch (Use the -i option to
> > > proceed anyway.) [usr1(at)Linuxsvr bin]$ pg_dump -h 192.168.2.51 -i -f
> > > /home/usr1/prod.sql prod
> >
> > What directory you are in has nothing to do with which copy of a program
> you
> > will run. There is a utility called "which" to help you: "which
pg_dump".
> > Almost certainly what you want to do is:
> > /usr/local/pgsql/bin/pg_dump -h ...
> >
> > You probably want to get a book on unix/linux and read up about the
> various
> > search paths.
> > --
> > Richard Huxton
> > Archonet Ltd
>

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-09-22 12:51:59 Re: Fw: Backup error - Pls help
Previous Message Kumar 2003-09-22 11:46:38 Re: Backup error - Pls help