pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Richard Huxton <dev@archonet.com>
To: Kumar <sgnerd@yahoo.com.sg>
To: psql <pgsql-sql@postgresql.org>
Subject: Re: Backup error - Pls help
Date: Mon, 22 Sep 2003 10:50:34 +0100
Message-ID: <200309221050.34908.dev@archonet.com> (raw)
In-Reply-To: <011101c380e8$10200dd0$7502a8c0@hdsc.com>
References: <011101c380e8$10200dd0$7502a8c0@hdsc.com>

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@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@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



view thread (5+ messages)  latest in thread

Message-ID: <200309221050.34908.dev@archonet.com>
Permalink:  ../200309221050.34908.dev@archonet.com/
Also on:    postgresql.org/message-id/200309221050.34908.dev@archonet.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: dev@archonet.com, sgnerd@yahoo.com.sg
  Subject: Re: Backup error - Pls help
  In-Reply-To: <200309221050.34908.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