pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: Net Tree Inc. <nettreeinc@gmail.com>
Cc: pgsql-admin <pgsql-admin@postgresql.org>
Cc: pgsql-general <pgsql-general@postgresql.org>
Subject: Re: [GENERAL] pg_dump: aborting because of version mismatch
Date: Tue, 23 Feb 2010 11:56:53 +0100
Message-ID: <9837222c1002230256y4f8cdc10pc8759ed294119704@mail.gmail.com> (raw)
In-Reply-To: <bd9689741002230234t1a0df72apd94b7625aa526391@mail.gmail.com>
References: <bd9689741002230150s21024416ie133445ffbd2f7a@mail.gmail.com>
	<9837222c1002230155t5559c940i354cd944fa5916c7@mail.gmail.com>
	<bd9689741002230234t1a0df72apd94b7625aa526391@mail.gmail.com>

2010/2/23 Net Tree Inc. <nettreeinc@gmail.com>:
> Thanks..
> This is what I am confused about. I installed a ver. 8.4 postgresql, why it's pg_dump is 8.3.9?? For first one, how could this possibly having problem using pg_dump that comes with the server install??

Comes with what server install? It depends on how you install
PostgreSQL, and on what platform you are. But clearly you are using a
pg_dump that comes from a previous version. It could be that you have
both installed, but that the 8.3 version comes first in your PATH
perhaps?

> the first one I backup using pgAdmin III ver. 1.8.4 on a ver 8.3.9 postgreSQL server

pgadmin ships with a copy of pg_dump. 1.8 ships with pg_dump from 8.3,
so -i should work there. pgadmin 1.8 isn't supported with server 8.4
at all anyway, so you need pgadmin 1.10 for that - which ships with
pg_dump from 8.4.

> the second one I backup using command line on a ver 8.4 postgreSQL server
> Is this something that can solved by upgrade or reinstall ver. 8.4 of  pg_dump?
> Is that its only downward compatible but not upward? which mean I can do restore on 8.4 from backup created by ver 8.3 pg_dump, but probably won't work the other way around? Definitely impossible? then what is '-i' use for.....?

No. You can restore on 8.4 only if you used pg_dump 8.4. But you ca
nuse pg_dump 8.4 on 8.3 just fine.

-i really is for minor versions only. And due to the fact that it's
not really useful, it's been removed (well the option is there, but it
doesn't do anything) in 8.4.
-- 
 Magnus Hagander
 Me: http://www.hagander.net/
 Work: http://www.redpill-linpro.com/



view thread (4+ messages)

Message-ID: <9837222c1002230256y4f8cdc10pc8759ed294119704@mail.gmail.com>
Permalink:  ../9837222c1002230256y4f8cdc10pc8759ed294119704@mail.gmail.com/
Also on:    postgresql.org/message-id/9837222c1002230256y4f8cdc10pc8759ed294119704@mail.gmail.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-admin@postgresql.org
  Cc: magnus@hagander.net, nettreeinc@gmail.com, pgsql-general@postgresql.org
  Subject: Re: [GENERAL] pg_dump: aborting because of version mismatch
  In-Reply-To: <9837222c1002230256y4f8cdc10pc8759ed294119704@mail.gmail.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