Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjFTz-0003WN-L7 for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 05:42:47 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjFTy-0005st-IQ for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 05:42:46 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjFTy-0005sl-91 for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 05:42:46 +0000 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1kjFTv-0004GS-Tl for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 05:42:45 +0000 Received: by mail-ed1-x534.google.com with SMTP id l5so10616213edq.11 for ; Sat, 28 Nov 2020 21:42:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CgHOHmyu6uObAoTTVfwu/zy9y6u0x7fdeDbjeu9Y4f4=; b=SV2omA1kxWc0zzT7eNfiCMvlU9zHz3SwJYhyaF5VUuDLd0LqNYJkVbPFv2aAvSUZmf ffjQ6JBfsaLOYyX4cOG/W73pT0f2j/6wvU+cYNLa3VyEbZmGtOEneekozZZi8Kac9app Z8RhW4p3BMUSvqHDgLWAms1FgcfikreV8LKYdjQwogO+py06T+x7xmZv2HohGyTb1iso avqhg2D9RHx5kcdwniXktQgs3X01UEe8EWX4J0yuHTrKQgoQr+NZbBiVWTD4iM+T81Y/ E7uJe/eCnppSDJwf8wYQBGniGWjscbvAF6HPT8xseh04lQSAWPGu3fuDiG57OFix2i3U viaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CgHOHmyu6uObAoTTVfwu/zy9y6u0x7fdeDbjeu9Y4f4=; b=rMfFb2K3ZIwhae/UmroF9Tr0nsZ87w3t00GHqbx4qQFFuu4Wzclu6R+cHfspXkwsSS g8XVhmiInmUWzFlX4FzynrXW0ZaGcbkzgIDQL+KQWrMo7tKMaEKVhsRFlJL8ymGqIlGI agNWCqYHA/9zZ00hwm12rWP7HwchsBozNLd31mQh2tXsM/h2pvKPGmSSWoikX1omXhNg z349r8GxOC3bVRGG+1zYIcubYgZkzUGo0R3uTCKq1bs/RDNbhquyLDa6nVB96o1akKhu ndUTZntUtmZqDkTpyQxIMBxRVGbAeVlwoqQ65f179d7GUe1De3mpBN90M6Sw5743WkwH F3YA== X-Gm-Message-State: AOAM530tX2m2JDhXCSwrbc9yJYPebE+Gsfw2y3HzbTWm0MBKU5koiyxz zQLNncuUO07PRvYXY7t/dMRVffYqyUHW7dte6ig= X-Google-Smtp-Source: ABdhPJxSJrx+vAP4OZTYlNdAF5dNTpf2A8P1Adr/J/qMfZU/fR0G/uJ+fChJJ1XIDA/5OQkGax4QmK8cSaZaI6jn77A= X-Received: by 2002:a50:fc11:: with SMTP id i17mr9642582edr.112.1606628560347; Sat, 28 Nov 2020 21:42:40 -0800 (PST) MIME-Version: 1.0 References: <19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com> In-Reply-To: From: Hemil Ruparel Date: Sun, 29 Nov 2020 11:12:03 +0530 Message-ID: Subject: Re: pgdump version mismatch error. server version: 13.0; pg_dump version: 12.4 To: mark armon <1994hejian@gmail.com> Cc: Adrian Klaver , "pgsql-generallists.postgresql.org" Content-Type: multipart/alternative; boundary="000000000000a0250d05b5385c76" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --000000000000a0250d05b5385c76 Content-Type: text/plain; charset="UTF-8" Download postgres 13. pg dump 13 will be downloaded along with it On Sun, Nov 29, 2020 at 11:02 AM mark armon <1994hejian@gmail.com> wrote: > > where to get pg_dump 13.0? > > On Sat, Nov 28, 2020 at 9:47 PM Adrian Klaver > wrote: > >> 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 >> > --000000000000a0250d05b5385c76 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Download postgres 13. pg dump 13 will be downloaded along = with it

On Sun, Nov 29, 2020 at 11:02 AM mark armon <1994hejian@gmail.com> wrote:
where to get pg_dump 13.0?=C2=A0

On Sat, Nov 28, 2020 at 9:47 PM Adr= ian Klaver <adrian.klaver@aklaver.com> wrote:
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-er= rors
> <http= s://stackoverflow.com/questions/14168920/how-to-fix-pg-dump-version-mismatc= h-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=C2=A0 and use that. FYI, it will <= br> work the other way e.g. a newer version of pg_dump can dump an older
version of Postgres.


--
Adrian Klaver
adrian.klave= r@aklaver.com
--000000000000a0250d05b5385c76--