Re: problem in database backup

From: "vijaykumar M" <m_vijaykumar(at)hotmail(dot)com>
To: jasiek(at)klaster(dot)net
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: problem in database backup
Date: 2003-07-31 11:59:36
Message-ID: BAY2-F1493RNpggkzpB00012fe3@hotmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

<html><div style='background-color:'><DIV>
<P>Hi Tomasz Myrta,</P>
<P>Thanks for ur info, u r correct .. after pointing to /usr/bin/pgsql/bin/pg_dump, i'm able to take backup.. </P>
<P>Thank u very much..</P>
<P>With Regards</P>
<P>Vijay</P>
<P><BR><BR>&nbsp;</P></DIV>
<DIV></DIV>&gt;From: Tomasz Myrta <JASIEK(at)KLASTER(dot)NET>
<DIV></DIV>&gt;To: vijaykumar M <M_VIJAYKUMAR(at)HOTMAIL(dot)COM>
<DIV></DIV>&gt;CC: pgsql-sql(at)postgresql(dot)org
<DIV></DIV>&gt;Subject: Re: [SQL] problem in database backup
<DIV></DIV>&gt;Date: Thu, 31 Jul 2003 13:40:45 +0200
<DIV></DIV>&gt;
<DIV></DIV>&gt;Dnia 2003-07-31 13:13, Uytkownik vijaykumar M napisa:
<DIV></DIV>&gt;
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;Hi All,
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;I'm using Postgresql V7.3.3, on that i created one database with
<DIV></DIV>&gt;&gt;name "mydb".
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;* PostgreSQL 7.3.3 on i686-pc-linux-gnu, compiled by GCC gcc (GCC)
<DIV></DIV>&gt;&gt;3.2 20020903 (Red Hat Linux 8.0 3.2-7)*
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;While taking a backup of my postgresql database, i'm getting the
<DIV></DIV>&gt;&gt;below error.
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;bash-2.05b$ *pg_dump mydb &gt;mydb.out
<DIV></DIV>&gt;&gt;pg_dump: server version: SAGES/pg_dump.mo; pg_dump version: 7.2.2
<DIV></DIV>&gt;&gt;pg_dump: aborting because of version mismatch (Use the -i option
<DIV></DIV>&gt;&gt;to proceed any
<DIV></DIV>&gt;&gt;================================================================*
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;*bash-2.05b$ pg_dump -i mydb &gt; mydb.out
<DIV></DIV>&gt;&gt;pg_dump: server version: SAGES/pg_dump.mo; pg_dump version: 7.2.2
<DIV></DIV>&gt;&gt;pg_dump: proceeding despite version mismatch
<DIV></DIV>&gt;&gt;pg_dump: query to obtain list of data types failed: ERROR:
<DIV></DIV>&gt;&gt;Attribute "typprtlen" not found
<DIV></DIV>&gt;&gt;==============================================================*
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;After getting these errors, i tried to check the version of pg_dump
<DIV></DIV>&gt;&gt;on my system by using the below command. Here is the result .....
<DIV></DIV>&gt;&gt;
<DIV></DIV>&gt;&gt;*[root(at)sql-linux root]# find / -name pg_dump -print
<DIV></DIV>&gt;&gt;/root/postgresql-7.3.3/src/bin/pg_dump
<DIV></DIV>&gt;&gt;/root/postgresql-7.3.3/src/bin/pg_dump/pg_dump
<DIV></DIV>&gt;&gt;/usr/bin/pg_dump
<DIV></DIV>&gt;&gt;/usr/local/pgsql/bin/pg_dump
<DIV></DIV>&gt;&gt;*
<DIV></DIV>&gt;
<DIV></DIV>&gt;Probably you have both 7.2.2 and 7.3.3 pg_dump versions and PATH
<DIV></DIV>&gt;points to 7.2.2 /usr/bin/pg_dump. Try using
<DIV></DIV>&gt;/usr/local/pgsql/bin/pg_dump
<DIV></DIV>&gt;
<DIV></DIV>&gt;Regards,
<DIV></DIV>&gt;Tomasz Myrta
<DIV></DIV>&gt;
<DIV></DIV>&gt;
<DIV></DIV></div><br clear=all><hr>It's all happening @ F1. Feel the thrill! <a href="http://g.msn.com/8HMWENIN/2734??PS=">Race along right here!</a> </html>

Attachment Content-Type Size
unknown_filename text/html 2.9 KB

Browse pgsql-sql by date

  From Date Subject
Next Message Richard Huxton 2003-07-31 11:59:58 Re: problem in database backup
Previous Message Tomasz Myrta 2003-07-31 11:40:45 Re: problem in database backup