From: Tom Lane <tgl@sss.pgh.pa.us>
To: Sergei Kornilov <sk@zsrv.org>
Cc: narendramca23@gmail.com <narendramca23@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org <pgsql-bugs@lists.postgresql.org>
Subject: Re: BUG #15308: pg_dump: server version: 10.1.5; pg_dump version: 9.6.6 pg_dump: aborting because of server version
Date: Thu, 02 Aug 2018 09:55:01 -0400
Message-ID: <23670.1533218101@sss.pgh.pa.us> (raw)
In-Reply-To: <6011881533215232@iva5-cb9df376e345.qloud-c.yandex.net>
References: <153320745931.1398.9044978997287135012@wrigleys.postgresql.org>
<6011881533215232@iva5-cb9df376e345.qloud-c.yandex.net>
Sergei Kornilov <sk@zsrv.org> writes:
> This is expected behavior: https://www.postgresql.org/docs/9.6/static/app-pgdump.html
>> pg_dump cannot dump from PostgreSQL servers newer than its own major version; it will refuse to even try, rather than risk making an invalid dump
Right, you need a pg_dump at least as new as the server.
> PS: also we have no 10.1.5 version. This is probably any fork, not postgresql itself?
That is indeed very strange. I thought for a moment that maybe the
pg_dump was too old to interpret our new two-part-version-number scheme
correctly. But (a) 9.6.6 is not that old, and (b) AFAICS from a quick
look at the source code, what pg_dump is printing here is just the
verbatim contents of the server_version string received from the server.
Also (c), if someone did try to use a number like 10.1.5 as a version
number, they'd confuse the heck out of a lot of PG client code that
expects major version >= 10 to have only a two-part version number.
So I too would like to know where this server came from ...
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: tgl@sss.pgh.pa.us, sk@zsrv.org, narendramca23@gmail.com
Subject: Re: BUG #15308: pg_dump: server version: 10.1.5; pg_dump version: 9.6.6 pg_dump: aborting because of server version
In-Reply-To: <23670.1533218101@sss.pgh.pa.us>
References: <153320745931.1398.9044978997287135012@wrigleys.postgresql.org> <6011881533215232@iva5-cb9df376e345.qloud-c.yandex.net> <23670.1533218101@sss.pgh.pa.us>
* 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