pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: mark armon <1994hejian@gmail.com>
To: pgsql-generallists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: pgdump version mismatch error. server version: 13.0; pg_dump version: 12.4
Date: Sat, 28 Nov 2020 08:17:55 -0800
Message-ID: <19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com> (raw)
In-Reply-To: <CACh77r4ejtFy55SdaXtSGueN-381e7vgLBYYro46fXqy+jTSQQ@mail.gmail.com>
References: <CACh77r4ejtFy55SdaXtSGueN-381e7vgLBYYro46fXqy+jTSQQ@mail.gmail.com>

On 11/28/20 8:12 AM, mark armon wrote:
> 
> OS: Windows
> issue: 
> https://stackoverflow.com/questions/14168920/how-to-fix-pg-dump-version-mismatch-errors 
> <https://stackoverflow.com/questions/14168920/how-to-fix-pg-dump-version-mismatch-errors;
> 
> |pg_dump: error: server version: 13.0; pg_dump version: 12.4 pg_dump: 
> error: aborting because of server version mismatch |
> 

You are trying to dump a Postgres 13.0 version instance using the 12.4 
version of pg_dump. That will not work as the error says. You need to 
find and use the 13.0 version of pg_dump  and use that. FYI, it will 
work the other way e.g. a newer version of pg_dump can dump an older 
version of Postgres.


-- 
Adrian Klaver
adrian.klaver@aklaver.com





view thread (5+ messages)  latest in thread

Message-ID: <19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com>
Permalink:  ../19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com/
Also on:    postgresql.org/message-id/19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com

 · 

reply

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-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, 1994hejian@gmail.com
  Subject: Re: pgdump version mismatch error. server version: 13.0; pg_dump version: 12.4
  In-Reply-To: <19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com>
  References: <CACh77r4ejtFy55SdaXtSGueN-381e7vgLBYYro46fXqy+jTSQQ@mail.gmail.com> <19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com>

* 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