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 1kjPTj-00057L-6s for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 16:23:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kjPTf-00060d-Ew for pgsql-general@arkaria.postgresql.org; Sun, 29 Nov 2020 16:23:07 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjPTd-00060V-Rb for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 16:23:07 +0000 Received: from out3-smtp.messagingengine.com ([66.111.4.27]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kjPTT-000092-5Y for pgsql-general@lists.postgresql.org; Sun, 29 Nov 2020 16:23:03 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id DF1675C007E; Sun, 29 Nov 2020 11:22:52 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 29 Nov 2020 11:22:52 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= from:subject:to:cc:references:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=h Mro2seQ4lZ45WJtxVifQ43o1xMgA4pOWYO/P25ANPA=; b=eOaEkHorLUXunSs2N FsjEHax6NqSyhezTu+WyDhPCHT4qYsPuM+mkCd93xfm+Z4DJTBani/tulZk15gy1 PceLWimsZUJO/CoyiZImxn8mJATGWH+Rrwe/eCsO6gWamGOXmMcW4ggdLfrCi9sc GolF9KMt/JXjQ42iTK2TjCVUhx1rKIocV0Vs2PH1QyF0fMFg0ex0kh9D7WOE3WI2 dYxYTiMDkhpDuTwlFFvJN353zG8YVE8Qvozx9YnHCv2aPksV11mwuUmqiSepvexv w22anKTImdqQM9id34GiRNjHz/MGZc2okNtfUpkNknu4kzAlo/TzYi08DnfLgHwm Ywybg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=hMro2seQ4lZ45WJtxVifQ43o1xMgA4pOWYO/P25AN PA=; b=BKTRW5HuBeYiVQAWpzUVRhniS9+l5cEMy+WCYu+3eTNaSzSHxNvo1HRot 3lFUy4zonQbAbk+wbZoeQchTK5DnRxhOD5ZVzqmtkV9VjNZH4DCgFBKntnsyZtmu 52elZWl8xwVkvDWwztWDrXL92/uDZY08yjBC04UqAS4pix/KBPFgGdFVY166wNyr g/D56i9B528AP/RjAeajKNzUh+92rVCWRhWAsot449c7DimkplEWW0FakPbuJqnr FReMt+q8JTecUgAaim6RVAT85atX8HTAJDL3Xqiaqqyv89KamJikGHehJ/kxyjUt W/ePx9fZpj/hNMfqZwcJ1WcG1DsBg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedujedrudehkedgkeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhephffuvfhfkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucggtffrrghtthgvrhhnpeetvddtgeegtdduvdfhhedtfeejkeetfedvheefgfei vdehtdejkeetieeiueeujeenucffohhmrghinhepshhtrggtkhhovhgvrhhflhhofidrtg homhenucfkphepjeehrddujedvrddurdeileenucevlhhushhtvghrufhiiigvpedtnecu rfgrrhgrmhepmhgrihhlfhhrohhmpegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvg hrrdgtohhm X-ME-Proxy: Received: from [192.168.1.4] (75-172-1-69.tukw.qwest.net [75.172.1.69]) by mail.messagingengine.com (Postfix) with ESMTPA id 3A4653064AA7; Sun, 29 Nov 2020 11:22:52 -0500 (EST) From: Adrian Klaver Subject: Re: pgdump version mismatch error. server version: 13.0; pg_dump version: 12.4 To: mark armon <1994hejian@gmail.com> Cc: "pgsql-generallists.postgresql.org" References: <19abe150-d8fe-5ae7-9b93-d70dfc21dd1c@aklaver.com> Message-ID: <02e6bf00-b512-46d8-a4fc-4aa11dcb9d35@aklaver.com> Date: Sun, 29 Nov 2020 08:22:51 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 11/28/20 9:32 PM, mark armon wrote: > > where to get pg_dump 13.0? Are both Postgres instances(12.4 and 13.0) on the same machine? If they are and you used the EDB installer the binaries(pg_dump for instance) will be under: C:\Program File\PostgreSQL\\bin If they are not then you will either have to use the version 13 of pg_dump that is on the other machine or install version 13 of Postgres on your machine. Also be aware that if you are trying to dump a version 13 instance and restore it to a version 12 instance of Postgres you will probably have issues beyond that of the pg_dump version. The dump/restore process is not designed to go backwards. > > 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 > > > > > > > > > > |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 > -- Adrian Klaver adrian.klaver@aklaver.com