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 1kqNiQ-0007IU-2f for pgsql-general@arkaria.postgresql.org; Fri, 18 Dec 2020 21:55:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kqNiO-0007ix-U5 for pgsql-general@arkaria.postgresql.org; Fri, 18 Dec 2020 21:55:08 +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 1kqNiO-0007iq-Mn for pgsql-general@lists.postgresql.org; Fri, 18 Dec 2020 21:55:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kqNiM-0005rH-Pg for pgsql-general@postgresql.org; Fri, 18 Dec 2020 21:55:08 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 0BILt4Xw216129; Fri, 18 Dec 2020 16:55:04 -0500 From: Tom Lane To: "Lu, Dan" cc: "pgsql-general@postgresql.org" Subject: Re: Upgrade check failed from 11.5 to 12.1 In-reply-to: References: Comments: In-reply-to "Lu, Dan" message dated "Fri, 18 Dec 2020 20:48:05 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <216127.1608328504.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 18 Dec 2020 16:55:04 -0500 Message-ID: <216128.1608328504@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk "Lu, Dan" writes: > I am trying to upgrade an instance of PostgreSQL in unix from 11.5 to 12= .1. > UNIX:> pg_upgrade -d /hostname/pg/dpoc/data -D /hostname/pg/dpoc/data -b= /hostname/pg/PostgreSQL-11.5/bin -B /hostname/pg/PostgreSQL-12.1/bin -p 5= 432 -P 9432 -c -v No, you can't use the same directory to hold old and new versions at the same time. After you're done with the upgrade, you could move the new data directory to be where the old one had been. regards, tom lane