From: Tom Lane <tgl@sss.pgh.pa.us>
To: developerandy@gmail.com
Cc: pgsql-bugs@lists.postgresql.org
Subject: Re: BUG #15686: pg_dump: server version: 11.2; pg_dump version: 11.2
Date: Mon, 11 Mar 2019 11:41:55 -0400
Message-ID: <32722.1552318915@sss.pgh.pa.us> (raw)
In-Reply-To: <15686-42b9267460e9d4c7@postgresql.org>
References: <15686-42b9267460e9d4c7@postgresql.org>
PG Bug reporting form <noreply@postgresql.org> writes:
> I recently installed PostgreSQL 11.2 (we were formerly using 9.5.3) and ran
> our tests. One of our tests performs a `pg_dump` and I receive the following
> error:
> 2019-03-08 16:43:54.417 [ 123 ] [INFO ] Starting database (dir) dump with:
> /path/to/postgresql/bin/pg_dump --file /path/to/file database_name
> 2019-03-08 16:43:54.429 [ 123 ] [ERROR] pg_dump: server version: 11.2;
> pg_dump version: 11.2
> 2019-03-08 16:43:54.429 [ 123 ] [ERROR] pg_dump: aborting because of server
> version mismatch
That's pretty bizarre-looking, isn't it. Looking at the code, I suspect
that the problem is that your pg_dump is linking to an old version of
libpq.so. Although what pg_dump is printing for "server version" is
the string received from the server, the actual version comparison is
done numerically and it depends on how libpq's PQserverVersion() function
parsed the string. In the 9.5 branch, the earliest version that would
have done the right thing for new-style two-part server version numbers
was 9.5.4.
Hence, you need to make sure your old libpq library gets replaced by
the new installation, or that your loader search path finds wherever
you've decided to put the new library.
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, developerandy@gmail.com
Subject: Re: BUG #15686: pg_dump: server version: 11.2; pg_dump version: 11.2
In-Reply-To: <32722.1552318915@sss.pgh.pa.us>
References: <15686-42b9267460e9d4c7@postgresql.org> <32722.1552318915@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