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 8FEA9D1B575 for ; Mon, 22 Sep 2003 09:51:25 +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 94111-03 for ; Mon, 22 Sep 2003 06:50:49 -0300 (ADT) Received: from anchor-post-34.mail.demon.net (anchor-post-34.mail.demon.net [194.217.242.92]) by svr1.postgresql.org (Postfix) with ESMTP id 79A9FD1B8A9 for ; Mon, 22 Sep 2003 06:50:41 -0300 (ADT) Received: from mwynhau.demon.co.uk ([193.237.186.96] helo=mainbox.archonet.com) by anchor-post-34.mail.demon.net with esmtp (Exim 3.35 #1) id 1A1NL8-0008Pu-0Y; Mon, 22 Sep 2003 10:50:43 +0100 Received: from localhost (localhost.localdomain [127.0.0.1]) by mainbox.archonet.com (Postfix) with ESMTP id 6D3C016B36; Mon, 22 Sep 2003 10:50:35 +0100 (BST) Received: from client17.archonet.com (client17.archonet.com [192.168.1.17]) by mainbox.archonet.com (Postfix) with ESMTP id CE42516B30; Mon, 22 Sep 2003 10:50:34 +0100 (BST) From: Richard Huxton To: "Kumar" , "psql" Subject: Re: Backup error - Pls help Date: Mon, 22 Sep 2003 10:50:34 +0100 User-Agent: KMail/1.5 References: <011101c380e8$10200dd0$7502a8c0@hdsc.com> In-Reply-To: <011101c380e8$10200dd0$7502a8c0@hdsc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309221050.34908.dev@archonet.com> X-Virus-Scanned: by AMaViS snapshot-20020531 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200309/245 X-Sequence-Number: 15223 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