pg_dump: aborting because of version mismatch

--0016e6d464cfe7536f0480417b4b
Content-Type: text/plain; charset=ISO-8859-1

>>I am keep getting error of mismatch of pg_dump version. how should one
dealing with different version of pg_dump normally?

C:\Program Files\pgAdmin III\1.8\pg_dump.exe -h 192.168.222.129 -p 5433 -U
postgres -F c -b -v -f "C:\Documents and
Settings\steven\Desktop\template.backup" template_postgis
pg_dump: server version: 8.3.9; pg_dump version: 8.3.0
pg_dump: aborting because of version mismatch (Use the -i option to proceed
anyway.)
pg_dump: *** aborted because of error

Process returned exit code 1.

>>If I use the '-i' option it still give the following error


[postgres [at] localhost ~]$ pg_dump -h 172.16.1.246 -p 5432 -U postgres -Fc -i
postgres > postgres
Password:
pg_dump.bin: server version: 8.4.0; pg_dump.bin version: 8.3.9
pg_dump.bin: proceeding despite version mismatch
pg_dump.bin: SQL command failed
pg_dump.bin: Error message from server: ERROR: column "reltriggers" does
not exist
LINE 1: ...oles WHERE oid = relowner) as rolname, relchecks, reltrigger...
^
pg_dump.bin: The command was: SELECT c.tableoid, c.oid, relname, relacl,
relkind, relnamespace, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid =
relowner) as rolname, relchecks, reltriggers, relhasindex, relhasrules,
relhasoids, d.refobjid as owning_tab, d.refobjsubid as owning_col, (SELECT
spcname FROM pg_tablespace t WHERE t.oid = c.reltablespace) AS
reltablespace, array_to_string(c.reloptions, ', ') as reloptions from
pg_class c left join pg_depend d on (c.relkind = 'S' and d.classid =
c.tableoid and d.objid = c.oid and d.objsubid = 0 and d.refclassid =
c.tableoid and d.deptype = 'a') where relkind in ('r', 'S', 'v', 'c') order
by c.oid

--0016e6d464cfe7536f0480417b4b
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div>>>I am keep getting error of mismatch of pg_dump version. how sh=
ould one dealing with different version of pg_dump normally?=A0</div><div><=
br></div><div>C:\Program Files\pgAdmin III\1.8\pg_dump.exe -h 192.168.222.1=
29 -p 5433 -U postgres -F c -b -v -f "C:\Documents and Settings\steven=
\Desktop\template.backup" template_postgis</div>
<div>pg_dump: server version: 8.3.9; pg_dump version: 8.3.0</div><div>pg_du=
mp: aborting because of version mismatch =A0(Use the -i option to proceed a=
nyway.)</div><div>pg_dump: *** aborted because of error</div><div><br></div=
>
<div>Process returned exit code 1.</div><div><br></div><div>>>If I us=
e the '-i' option it still give the following error</div><div><br><=
/div><div><br></div><div><div>[postgres [at] localhost ~]$ pg_dump -h 172.16.1.2=
46 -p 5432 -U postgres -Fc -i postgres > postgres</div>
<div>Password:</div><div>pg_dump.bin: server version: 8.4.0; pg_dump.bin ve=
rsion: 8.3.9</div><div>pg_dump.bin: proceeding despite version mismatch</di=
v><div>pg_dump.bin: SQL command failed</div><div>pg_dump.bin: Error message=
from server: ERROR: =A0column "reltriggers" does not exist</div>
<div>LINE 1: ...oles WHERE oid =3D relowner) as rolname, relchecks, reltrig=
ger...</div><div>=A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^</div><di=
v>pg_dump.bin: The command was: SELECT c.tableoid, c.oid, relname, relacl, =
relkind, relnamespace, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid =
=3D relowner) as rolname, relchecks, reltriggers, relhasindex, relhasrules,=
relhasoids, d.refobjid as owning_tab, d.refobjsubid as owning_col, (SELECT=
spcname FROM pg_tablespace t WHERE t.oid =3D c.reltablespace) AS reltables=
pace, array_to_string(c.reloptions, ', ') as reloptions from pg_cla=
ss c left join pg_depend d on (c.relkind =3D 'S' and d.classid =3D =
c.tableoid and d.objid =3D c.oid and d.objsubid =3D 0 and d.refclassid =3D =
c.tableoid and d.deptype =3D 'a') where relkind in ('r', &#=
39;S', 'v', 'c') order by c.oid</div>
<div><br></div></div>

--0016e6d464cfe7536f0480417b4b--
nettreeinc [ Di, 23 Februar 2010 10:50 ] [ ID #2033100 ]

Re: pg_dump: aborting because of version mismatch

2010/2/23 Net Tree Inc. <nettreeinc [at] gmail.com>:
>>>I am keep getting error of mismatch of pg_dump version. how should one d=
ealing with different version of pg_dump normally?
> C:\Program Files\pgAdmin III\1.8\pg_dump.exe -h 192.168.222.129 -p 5433 -=
U postgres -F c -b -v -f "C:\Documents and Settings\steven\Desktop\template=
..backup" template_postgis
> pg_dump: server version: 8.3.9; pg_dump version: 8.3.0
> pg_dump: aborting because of version mismatch =A0(Use the -i option to pr=
oceed anyway.)
> pg_dump: *** aborted because of error
> Process returned exit code 1.
>>>If I use the '-i' option it still give the following error
>
> [postgres [at] localhost ~]$ pg_dump -h 172.16.1.246 -p 5432 -U postgres -Fc -=
i postgres > postgres
> Password:
> pg_dump.bin: server version: 8.4.0; pg_dump.bin version: 8.3.9
> pg_dump.bin: proceeding despite version mismatch
> pg_dump.bin: SQL command failed
> pg_dump.bin: Error message from server: ERROR: =A0column "reltriggers" do=
es not exist
> LINE 1: ...oles WHERE oid =3D relowner) as rolname, relchecks, reltrigger=
....
> =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^
> pg_dump.bin: The command was: SELECT c.tableoid, c.oid, relname, relacl, =
relkind, relnamespace, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid =
=3D relowner) as rolname, relchecks, reltriggers, relhasindex, relhasrules,=
relhasoids, d.refobjid as owning_tab, d.refobjsubid as owning_col, (SELECT=
spcname FROM pg_tablespace t WHERE t.oid =3D c.reltablespace) AS reltables=
pace, array_to_string(c.reloptions, ', ') as reloptions from pg_class c lef=
t join pg_depend d on (c.relkind =3D 'S' and d.classid =3D c.tableoid and d=
..objid =3D c.oid and d.objsubid =3D 0 and d.refclassid =3D c.tableoid and d=
..deptype =3D 'a') where relkind in ('r', 'S', 'v', 'c') order by c.oid


You're doing two different things here. In the first one it's pg_dump
8.3.0 against server 8.3.9. This should, I think, work if you use -i.
It's not recommended, but it should work.

In the second one, it's pg_dump 8.3.9 against server 8.4.0. This is
simply not supported. You need to use pg_dump 8.4 for server 8.4.


--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

--
Sent via pgsql-general mailing list (pgsql-general [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Magnus Hagander [ Di, 23 Februar 2010 10:55 ] [ ID #2033101 ]

Re: pg_dump: aborting because of version mismatch

--0016e6db2ae72edad004804217a7
Content-Type: text/plain; charset=ISO-8859-1

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??

the first one I backup using pgAdmin III ver. 1.8.4 on a ver 8.3.9
postgreSQL server
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.....?

Steven


On Tue, Feb 23, 2010 at 5:55 PM, Magnus Hagander <magnus [at] hagander.net>wrote:

> 2010/2/23 Net Tree Inc. <nettreeinc [at] gmail.com>:
> >>>I am keep getting error of mismatch of pg_dump version. how should one
> dealing with different version of pg_dump normally?
> > C:\Program Files\pgAdmin III\1.8\pg_dump.exe -h 192.168.222.129 -p 5433
> -U postgres -F c -b -v -f "C:\Documents and
> Settings\steven\Desktop\template.backup" template_postgis
> > pg_dump: server version: 8.3.9; pg_dump version: 8.3.0
> > pg_dump: aborting because of version mismatch (Use the -i option to
> proceed anyway.)
> > pg_dump: *** aborted because of error
> > Process returned exit code 1.
> >>>If I use the '-i' option it still give the following error
> >
> > [postgres [at] localhost ~]$ pg_dump -h 172.16.1.246 -p 5432 -U postgres -Fc
> -i postgres > postgres
> > Password:
> > pg_dump.bin: server version: 8.4.0; pg_dump.bin version: 8.3.9
> > pg_dump.bin: proceeding despite version mismatch
> > pg_dump.bin: SQL command failed
> > pg_dump.bin: Error message from server: ERROR: column "reltriggers" does
> not exist
> > LINE 1: ...oles WHERE oid = relowner) as rolname, relchecks,
> reltrigger...
> > ^
> > pg_dump.bin: The command was: SELECT c.tableoid, c.oid, relname, relacl,
> relkind, relnamespace, (SELECT rolname FROM pg_catalog.pg_roles WHERE oid =
> relowner) as rolname, relchecks, reltriggers, relhasindex, relhasrules,
> relhasoids, d.refobjid as owning_tab, d.refobjsubid as owning_col, (SELECT
> spcname FROM pg_tablespace t WHERE t.oid = c.reltablespace) AS
> reltablespace, array_to_string(c.reloptions, ', ') as reloptions from
> pg_class c left join pg_depend d on (c.relkind = 'S' and d.classid =
> c.tableoid and d.objid = c.oid and d.objsubid = 0 and d.refclassid =
> c.tableoid and d.deptype = 'a') where relkind in ('r', 'S', 'v', 'c') order
> by c.oid
>
>
> You're doing two different things here. In the first one it's pg_dump
> 8.3.0 against server 8.3.9. This should, I think, work if you use -i.
> It's not recommended, but it should work.
>
> In the second one, it's pg_dump 8.3.9 against server 8.4.0. This is
> simply not supported. You need to use pg_dump 8.4 for server 8.4.
>
>
> --
> Magnus Hagander
> Me: http://www.hagander.net/
> Work: http://www.redpill-linpro.com/
>



--
---------------------------------------
Steven Huang

--0016e6db2ae72edad004804217a7
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Thanks..<div><br></div><div>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 co=
uld this possibly having problem using pg_dump that comes with the server i=
nstall??=A0<div>
<br></div><div><div>the first one I backup using pgAdmin III ver. 1.8.4 on =
a ver 8.3.9 postgreSQL server</div><div>the second one I backup using comma=
nd line on a ver 8.4 postgreSQL server</div><div><br></div></div><div>Is th=
is something that can solved by upgrade or reinstall ver. 8.4 of =A0pg_dump=
?=A0<div>
<br></div><div>Is that its only downward compatible but not upward? which m=
ean I can do restore on 8.4 from backup created by ver 8.3 pg_dump, but pro=
bably won't work the other way around? Definitely impossible? then what=
is '-i' use for.....?</div>
<div><br>Steven</div><div><br></div><div><br><div class=3D"gmail_quote">On =
Tue, Feb 23, 2010 at 5:55 PM, Magnus Hagander <span dir=3D"ltr"><<a href=
=3D"mailto:magnus [at] hagander.net">magnus [at] hagander.net</a>></span> wrote:<b=
r>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;">2010/2/23 Net Tree Inc. <<a href=3D"mail=
to:nettreeinc [at] gmail.com">nettreeinc [at] gmail.com</a>>:<br>
<div><div></div><div class=3D"h5">>>>I am keep getting error of mi=
smatch of pg_dump version. how should one dealing with different version of=
pg_dump normally?<br>
> C:\Program Files\pgAdmin III\1.8\pg_dump.exe -h 192.168.222.129 -p 543=
3 -U postgres -F c -b -v -f "C:\Documents and Settings\steven\Desktop\=
template.backup" template_postgis<br>
> pg_dump: server version: 8.3.9; pg_dump version: 8.3.0<br>
> pg_dump: aborting because of version mismatch =A0(Use the -i option to=
proceed anyway.)<br>
> pg_dump: *** aborted because of error<br>
> Process returned exit code 1.<br>
>>>If I use the '-i' option it still give the following er=
ror<br>
><br>
> [postgres [at] localhost ~]$ pg_dump -h 172.16.1.246 -p 5432 -U postgres -F=
c -i postgres > postgres<br>
> Password:<br>
> pg_dump.bin: server version: 8.4.0; pg_dump.bin version: 8.3.9<br>
> pg_dump.bin: proceeding despite version mismatch<br>
> pg_dump.bin: SQL command failed<br>
> pg_dump.bin: Error message from server: ERROR: =A0column "reltrig=
gers" does not exist<br>
> LINE 1: ...oles WHERE oid =3D relowner) as rolname, relchecks, reltrig=
ger...<br>
> =A0=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^<br>
> pg_dump.bin: The command was: SELECT c.tableoid, c.oid, relname, relac=
l, relkind, relnamespace, (SELECT rolname FROM pg_catalog.pg_roles WHERE oi=
d =3D relowner) as rolname, relchecks, reltriggers, relhasindex, relhasrule=
s, relhasoids, d.refobjid as owning_tab, d.refobjsubid as owning_col, (SELE=
CT spcname FROM pg_tablespace t WHERE t.oid =3D c.reltablespace) AS reltabl=
espace, array_to_string(c.reloptions, ', ') as reloptions from pg_c=
lass c left join pg_depend d on (c.relkind =3D 'S' and d.classid =
=3D c.tableoid and d.objid =3D c.oid and d.objsubid =3D 0 and d.refclassid =
=3D c.tableoid and d.deptype =3D 'a') where relkind in ('r'=
, 'S', 'v', 'c') order by c.oid<br>

<br>
<br>
</div></div>You're doing two different things here. In the first one it=
's pg_dump<br>
8.3.0 against server 8.3.9. This should, I think, work if you use -i.<br>
It's not recommended, but it should work.<br>
<br>
In the second one, it's pg_dump 8.3.9 against server 8.4.0. This is<br>
simply not supported. You need to use pg_dump 8.4 for server 8.4.<br>
<font color=3D"#888888"><br>
<br>
--<br>
=A0Magnus Hagander<br>
=A0Me: <a href=3D"http://www.hagander.net/" target=3D"_blank">http://www.ha=
gander.net/</a><br>
=A0Work: <a href=3D"http://www.redpill-linpro.com/" target=3D"_blank">http:=
//www.redpill-linpro.com/</a><br>
</font></blockquote></div><br><br clear=3D"all"><br>-- <br>----------------=
-----------------------<br>Steven Huang<br>
</div></div></div>

--0016e6db2ae72edad004804217a7--
nettreeinc [ Di, 23 Februar 2010 11:34 ] [ ID #2033102 ]

Re: pg_dump: aborting because of version mismatch

2010/2/23 Net Tree Inc. <nettreeinc [at] 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 probl=
em 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 postgr=
eSQL 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 =A0=
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 w=
ork 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/

--
Sent via pgsql-general mailing list (pgsql-general [at] postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
Magnus Hagander [ Di, 23 Februar 2010 11:56 ] [ ID #2033103 ]
Datenbanken » gmane.comp.db.postgresql.admin » pg_dump: aborting because of version mismatch

Vorheriges Thema: Re: [ADMIN] how do I do dump and restore without bugging with
Nächstes Thema: Using Postgresql Replication