pg.ddx.io pgsql-sql@postgresql.org mailing list archive
help / color / mirror / Atom feedBackup error - Pls help
5+ messages / 2 participants
[nested] [flat]
* Backup error - Pls help
@ 2003-09-22 09:01 Kumar <sgnerd@yahoo.com.sg>
0 siblings, 1 reply; 5+ messages in thread
From: Kumar @ 2003-09-22 09:01 UTC (permalink / raw)
To: pgsql-sql
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.
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
pg_dump: server version: pg_dump.mo; pg_dump version: 7.2.1
pg_dump: proceeding despite version mismatch
pg_dump: query to obtain list of data types failed: ERROR: Attribute "typprtlen" not foun
d
[usr1@Linuxsvr bin]$
Where i am doing mistake. Pls shed some light.
Thank you very much.
Kumar
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Backup error - Pls help
@ 2003-09-22 09:50 Richard Huxton <dev@archonet.com>
parent: Kumar <sgnerd@yahoo.com.sg>
0 siblings, 1 reply; 5+ messages in thread
From: Richard Huxton @ 2003-09-22 09:50 UTC (permalink / raw)
To: Kumar <sgnerd@yahoo.com.sg>; pgsql-sql
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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Backup error - Pls help
@ 2003-09-22 11:46 Kumar <sgnerd@yahoo.com.sg>
parent: Richard Huxton <dev@archonet.com>
0 siblings, 0 replies; 5+ messages in thread
From: Kumar @ 2003-09-22 11:46 UTC (permalink / raw)
To: Richard Huxton <dev@archonet.com>; pgsql-sql
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@archonet.com>
To: "Kumar" <sgnerd@yahoo.com.sg>; "psql" <pgsql-sql@postgresql.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@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
^ permalink raw reply [nested|flat] 5+ messages in thread
* Fw: Backup error - Pls help
@ 2003-09-22 12:15 Kumar <sgnerd@yahoo.com.sg>
0 siblings, 1 reply; 5+ messages in thread
From: Kumar @ 2003-09-22 12:15 UTC (permalink / raw)
To: \"Richard Huxton\" <dev@archonet.com>; 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@yahoo.com.sg>
To: "Richard Huxton" <dev@archonet.com>; "psql" <pgsql-sql@postgresql.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@archonet.com>
> To: "Kumar" <sgnerd@yahoo.com.sg>; "psql" <pgsql-sql@postgresql.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@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
>
^ permalink raw reply [nested|flat] 5+ messages in thread
* Re: Fw: Backup error - Pls help
@ 2003-09-22 12:51 Richard Huxton <dev@archonet.com>
parent: Kumar <sgnerd@yahoo.com.sg>
0 siblings, 0 replies; 5+ messages in thread
From: Richard Huxton @ 2003-09-22 12:51 UTC (permalink / raw)
To: Kumar <sgnerd@yahoo.com.sg>; pgsql-sql
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
^ permalink raw reply [nested|flat] 5+ messages in thread
end of thread, other threads:[~2003-09-22 12:51 UTC | newest]
Thread overview: 5+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-09-22 09:01 Backup error - Pls help Kumar <sgnerd@yahoo.com.sg>
2003-09-22 09:50 ` Richard Huxton <dev@archonet.com>
2003-09-22 11:46 ` Kumar <sgnerd@yahoo.com.sg>
2003-09-22 12:15 Fw: Backup error - Pls help Kumar <sgnerd@yahoo.com.sg>
2003-09-22 12:51 ` Richard Huxton <dev@archonet.com>
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