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 1mdwLv-0001NX-6o for pgsql-general@arkaria.postgresql.org; Fri, 22 Oct 2021 15:21:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mdwLu-0007pP-45 for pgsql-general@arkaria.postgresql.org; Fri, 22 Oct 2021 15:21:02 +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 1mdwLt-0007pF-Lu for pgsql-general@lists.postgresql.org; Fri, 22 Oct 2021 15:21:01 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1mdwLq-0001tk-Or for pgsql-general@postgresql.org; Fri, 22 Oct 2021 15:21:00 +0000 Received: by mail-wr1-x434.google.com with SMTP id z14so4380412wrg.6 for ; Fri, 22 Oct 2021 08:20:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec-at.20210112.gappssmtp.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=kOtSgvkhMFXjSAHtx1dGmNd+r3tHlFvYtfr0MKsYZgg=; b=hsRq9qAO4MPzOMXnHKie4by7cCr9CUxuTCOkoAK1tBw924VBDyCAjjAOiiameyzQv1 EOiliiV2DjoKsu7X3jXhSJojPHqr3/G+Bm2iXnrabkGeqVl6hhAURC8hDLiWDQxu8wT+ 9LTm7RXZ/X1Ld/NQ2PuSehBcBhnrDKS7Doy7/Om3DTd1E245z904SiRremobTqFPe9wN 7sdfpljfKN7Bs1OSr8wvNQjHJWyTujufGvCA+AXTTswYuPg8CqawbZvfDsugZ5Ru6v27 k4VduX0f2CJYk5ZAXozan0nF9OpIHswIanvVVkO/hhjjnQ0b778u+acG7rB6CQNRBx9h e2Ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=kOtSgvkhMFXjSAHtx1dGmNd+r3tHlFvYtfr0MKsYZgg=; b=Ke87EboDX1mM/sNe3oy7lFWyjbpVWB15cKAaJZa+4fYZcqfXs5O56DtmLLDs2f4a8u XSx5KwaXs5xmrSJXnyhwyZQivumTcawvpB47fNpdbiS1RFrxCIjOjr36JFJ+wELmRSQG Ub5YHgdaVlxzXIcVJF/AtQ8ovhuj8MS+PpSGC4qRGT5kQ3Vi/n4qouIUX18KXaEIPG/z EQbo+NNYwooOtPjejWuPtFR15/+KtJR9nbnCWTTyPRbvN9tDBw1NZv/nl6q0iK+SYz1Q IX9s5qkZUlM7wUb1QBi8yYkih9VAmUcdeFajtmc//B4ql1cF4nJJ6N+wkwXEJPqbm9I5 FVFQ== X-Gm-Message-State: AOAM531FjWbtnDMmXGET+X6nRRlwk6OAfmTxp4OwyKu3NaXr9i7c/ovW My8HVrsTHylm/bcOg0qcYhhbjAFOCYpdAA== X-Google-Smtp-Source: ABdhPJxLVLwBtIdwwTpjYCbzKfubfWMC6JHPKs+LhMyxZu37wUC/sJSp65Cv8kybGT9U2IdifzMKiw== X-Received: by 2002:a5d:4bc2:: with SMTP id l2mr577251wrt.93.1634916057021; Fri, 22 Oct 2021 08:20:57 -0700 (PDT) Received: from localhost.localdomain (62-46-251-185.adsl.highway.telekom.at. [62.46.251.185]) by smtp.gmail.com with ESMTPSA id f20sm9545992wmq.38.2021.10.22.08.20.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Oct 2021 08:20:56 -0700 (PDT) Message-ID: <13e858eeec8fc0e0e67090c5abc14530114d03a3.camel@cybertec.at> Subject: Re: [Major version upgrade] pg_upgrade fails despite passing check mode From: Laurenz Albe To: Abhishek Bhola , pgsql-general@postgresql.org Date: Fri, 22 Oct 2021 17:20:55 +0200 In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.40.4 (3.40.4-2.fc34) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, 2021-10-22 at 17:11 +0900, Abhishek Bhola wrote: > postgres@dxxxpgs03:/Dxxxx1/datadg/data13$ /usr/pgsql-13/bin/pg_upgrade -k --check > --new-datadir='/Dxxxx1/datadg/data13' --old-datadir='/Dxxxx1/datadg/data' > --new-bindir='/usr/pgsql-13/bin' --old-bindir='/usr/pgsql-11/bin' > > *Clusters are compatible* > > But then while performing the actual upgrade, it failed saying the "owner of a FDW should be a super user" > > So I started the old Postgres 11 again, changed the owner of that FDW to a super user. > > Now when I try to run the upgrade (even in check mode) again, it says "new cluster tablespace directory already exists" > > Is it safe to delete the new tablespace directories? Don't remove the tablespace directories, because they contain the original data from the old cluster. But there should be directories called PG_13_202007201, and you have to remove those. Yours, Laurenz Albe -- Cybertec | https://www.cybertec-postgresql.com