Received: from malur.postgresql.org ([2a02:16a8:dc51::56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flE4L-0003oX-N9 for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Aug 2018 13:55:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1flE4K-00063y-81 for pgsql-bugs@arkaria.postgresql.org; Thu, 02 Aug 2018 13:55:08 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flE4J-00062v-UW for pgsql-bugs@lists.postgresql.org; Thu, 02 Aug 2018 13:55:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1flE4G-0001Wb-UP for pgsql-bugs@lists.postgresql.org; Thu, 02 Aug 2018 13:55:06 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id w72Dt1oo023671; Thu, 2 Aug 2018 09:55:01 -0400 From: Tom Lane To: Sergei Kornilov cc: "narendramca23@gmail.com" , "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 In-reply-to: <6011881533215232@iva5-cb9df376e345.qloud-c.yandex.net> References: <153320745931.1398.9044978997287135012@wrigleys.postgresql.org> <6011881533215232@iva5-cb9df376e345.qloud-c.yandex.net> Comments: In-reply-to Sergei Kornilov message dated "Thu, 02 Aug 2018 16:07:12 +0300" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <23669.1533218101.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Thu, 02 Aug 2018 09:55:01 -0400 Message-ID: <23670.1533218101@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Sergei Kornilov writes: > This is expected behavior: https://www.postgresql.org/docs/9.6/static/ap= p-pgdump.html >> pg_dump cannot dump from PostgreSQL servers newer than its own major ve= rsion; 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 postg= resql 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 >=3D 10 to have only a two-part version number. So I too would like to know where this server came from ... regards, tom lane