Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1IkG-0001jl-96 for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 23:45:40 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j1IkE-0004Yu-OM for pgsql-general@arkaria.postgresql.org; Mon, 10 Feb 2020 23:45:38 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1j1IkE-0004Ym-Ee for pgsql-general@lists.postgresql.org; Mon, 10 Feb 2020 23:45:38 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j1IkC-0008C1-6y for pgsql-general@postgresql.org; Mon, 10 Feb 2020 23:45:38 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C6C0969B; Mon, 10 Feb 2020 18:45:33 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Mon, 10 Feb 2020 18:45:33 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm2; bh=9 5o53tL2qUc1eCAMscQHRyq6WiKP5MHTox5aG6ydsAc=; b=PvorcEfXQ8EN90ytx BIamWYbwI4zmz+smb3XHtuAWsclNuwfjTPNPDwOqRmiUhMJpFWP/5IugrcRt490s bahl0gUtee52MHhSpNRSW4J9z0obltzmmItizJBssT1Ilu4gDuMGJ6T+8StDlebM sVAvS3LbmrWkUetW250U7eeOAy1Xbf0WqEul4F0YhsafVlxwJhOzypA8yRkOjuxS jDJqZ2FGlWMx7/XF6oHL+gf54N3HzvKurjMCfzRfXci+1BG0BnY3eVnuFwfjXuEN rQ8gJFSN61+mDdIsld2/d6IC5f2fL8Uu6wrWPCC1FBusQb8fyzsAzZIF93wJYI7p cNXQw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=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=fm2; bh=95o53tL2qUc1eCAMscQHRyq6WiKP5MHTox5aG6yds Ac=; b=zZjbbCk5LnjYTxb5UQEJQouAanZEF04TiZvnKdsDMNxQ4YsYmRtDzS2GL qNlYZsMTwVeDcvhJs2iy/4n8M7bjyyQvsRgNBrxTugamrUDcZo1Kd0ciJ7GWc5ZX hb0KW2ywzUTegtdioMEs5lPqQSmp1UfZCrAif9/JCJiZjZZwDA7fQU12ecNa8jfK 3JpyBJyASYuwG2AMHfb1z5fymvclrIJ2Kt/GUi4KX8hgOrBUZugYV30D3tp5ciU8 1pZ0DI3p1YyQyl0Rha4A7VtDfVAwKBstG1d2zm4ti1B+1l8OdA52lSajGo0PqbZ0 S+v0TxeDEqvb3Llwaf6x2gXwiZfhg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedriedvgdduvdcutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeetughrihgr nhcumfhlrghvvghruceorggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrhdrtghomh eqnecukfhppeehtddrudeljedrkedtrddvnecuvehluhhsthgvrhfuihiivgeptdenucfr rghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklhgrvhgvrhesrghklhgrvhgvrh drtghomh X-ME-Proxy: Received: from ranger.suse (50-197-80-2-static.hfc.comcastbusiness.net [50.197.80.2]) by mail.messagingengine.com (Postfix) with ESMTPA id ECE68328005D; Mon, 10 Feb 2020 18:45:32 -0500 (EST) Subject: Re: Pre-version pg_upgrade syntax check To: Rich Shepard , pgsql-general@postgresql.org References: <03ebdc12-d8f6-8310-9552-f7a744fe3e73@aklaver.com> From: Adrian Klaver Message-ID: <3698bbe2-6082-acda-58a0-2f8c15fee1b2@aklaver.com> Date: Mon, 10 Feb 2020 15:45:32 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2/10/20 3:40 PM, Rich Shepard wrote: > On Mon, 10 Feb 2020, Rich Shepard wrote: > >> Good advice; I'll do that. > > Huh! Not what I expected: > > postgres@salmo:~$ pg_upgrade -c -b /usr/lib64/postgresql/11/bin/ -B > /usr/lib64/postgresql/12/bin/ -d /var/lib/pgsql/11/data -D > /var/lib/pgsql/12/data/ > > (All on one line; wrapped by alpine.) > > Performing Consistency Checks > ----------------------------- > Checking cluster versions Old cluster data and binary directories are > from different major versions. > Failure, exiting > > Well, of course they're from different major versions, that's why I'm > running pg_upgrade. What did I do incorrectly? What it is saying is -b and -d are pointing at binary and data directories that are incompatible. You need to make sure that: /usr/lib64/postgresql/11/bin/ and /var/lib/pgsql/11/data are actually pointing at 11 instances of binaries and data respectively. > > Rich > > -- Adrian Klaver adrian.klaver@aklaver.com