Re: [GENERAL] pg_dump: aborting because of version mismatch

Поиск
Список
Период
Сортировка
От Magnus Hagander
Тема Re: [GENERAL] pg_dump: aborting because of version mismatch
Дата
Msg-id 9837222c1002230256y4f8cdc10pc8759ed294119704@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [GENERAL] pg_dump: aborting because of version mismatch  ("Net Tree Inc." <nettreeinc@gmail.com>)
Список pgsql-admin
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
couldthis 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.3pg_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/

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Net Tree Inc."
Дата:
Сообщение: Re: [GENERAL] pg_dump: aborting because of version mismatch
Следующее
От: Iñigo Martinez Lasala
Дата:
Сообщение: Re: how do I do dump and restore without bugging with constraint?