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 1qBAlJ-0002Dk-1N for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jun 2023 09:01:25 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1qBAlH-0007xG-J8 for pgsql-hackers@arkaria.postgresql.org; Mon, 19 Jun 2023 09:01:23 +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 1qBAlH-0007x7-9d for pgsql-hackers@lists.postgresql.org; Mon, 19 Jun 2023 09:01:23 +0000 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qBAlA-0031iQ-Np for pgsql-hackers@lists.postgresql.org; Mon, 19 Jun 2023 09:01:22 +0000 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2b4725e9917so16034141fa.2 for ; Mon, 19 Jun 2023 02:01:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687165275; x=1689757275; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:from:to:cc:subject:date:message-id:reply-to; bh=CdHVyQxrZz0dK8f4S8ifMtmQejvljIxBRUyDDInfdoc=; b=pd2Nu7dFzHpD+azih5heRmJiu+lgAT/xX1iYnKn18Pd3a9khzbCFxDhxpXifTOYK+8 JquCVkaJ+FR6ACCTQWBM0+kfSFHhEBvtQqrPJKZJsfAihyNlbxxWhu+396prP6abuZWG eYOCeSh0MOHOxU0I3Hbys6rk7VOIdjXCUJk8cFC/Mq4TsUjDdVyfB5+Tcz9WXA6cx/hw HroK9vbDXpzxPJn05OZODM9qAfuPmuCFEoed67EfkNP75MM8eGYrzWGqR4jTTO0Wjomc JtO/hWSfWRKpx6E7XVwv0nAsMS2E+2lonyYugvYN7HPGez0cHu2PAbWvIiq07X5V6bMz ajRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687165275; x=1689757275; h=user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:subject:cc:to:from:date :sender:message-id:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=CdHVyQxrZz0dK8f4S8ifMtmQejvljIxBRUyDDInfdoc=; b=XViSKoGJklL2K4QG1Oh9ej038wM8QOhWrsBnH498H5WMDxKAS6sGrMKgiR0AIXRItu 9DLEVRYaUEp2XoHHEe7WC65KUP/63i53l+8EhbwXN2go4fDDU/QpM7CL15M2B3ZHKzfH z1cBPFcYugN8aaaVT6wEbdXINKSIFTgN8q2EHiEBUrW6e0JKV1zhR7TstMjHjafmqtyb QrkvJJ6ktaQ6qGKsASaV7JLBPKRitYyosjVcSgfckiXKWFJ/VvSjthwt6tlfC/RjC3+O 59Q24YgPC9F2o9us7aCI2NLc2NRntlx0YzfSpbFljxpqwqsT6q5/ozQReB4+PYWorfwh /0Cg== X-Gm-Message-State: AC+VfDwbnnl5JWVcRks3yNYHfy0TlyIJ42KWJtccS1TrH9e/S0UhyHH6 r/SuNO4Ll2EARpUE1R6AA/Q6odL/DEs= X-Google-Smtp-Source: ACHHUZ5OsQyBX9yhYibgRPjKL7H1jnF3WkxuQHr2ROotL11p6bXpVO/kB6VmdBPoJXJmsK2QYq7yXQ== X-Received: by 2002:a05:651c:104:b0:2ad:814c:6ad5 with SMTP id a4-20020a05651c010400b002ad814c6ad5mr5132496ljb.46.1687165273723; Mon, 19 Jun 2023 02:01:13 -0700 (PDT) Received: from lightning.caipicrew.dd-dns.de ([2001:a61:3461:701:e375:72af:ca4f:d116]) by smtp.gmail.com with ESMTPSA id eh9-20020a0564020f8900b0050a276e7ba8sm12801819edb.36.2023.06.19.02.01.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Jun 2023 02:01:13 -0700 (PDT) Message-ID: <64901959.050a0220.f396a.9554@mx.google.com> X-Google-Original-Message-ID: <20230619090112.GC13996@caipicrew.dd-dns.de;lightning.caipicrew.dd-dns.de> Sender: Michael Banck Received: from mbanck by lightning.caipicrew.dd-dns.de with local (Exim 4.92) (envelope-from ) id 1qBAl6-0002QU-Iu; Mon, 19 Jun 2023 11:01:12 +0200 Date: Mon, 19 Jun 2023 11:01:12 +0200 From: Michael Banck To: James Cloos Cc: pgsql-hackers@lists.postgresql.org Subject: Re: =?utf-8?B?ZGVi4oCZ?= =?utf-8?Q?s?= pg_upgradecluster(1) vs streaming replication References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Sat, Jun 17, 2023 at 07:10:23PM -0400, James Cloos wrote: > Has anyone recently tried updating a streaming replication cluster using > debian’s pg_upgradecluster(1) on each node? Note that the word "cluster" in upgradecluster refers to a single Postgres instance, a.k.a a cluster of databases. It is not designed to upgrade streaming replication clusters. > Did things work well? > > My last attempt (11 to 13, as I recall) had issues and I had to drop and > re-install the db on the secondaries. > > I'd like to avoid that this time... > > Should I expect things to work easily? No, you need to either rebuild the secondaries or use the rsync method to resync them from the documentation. The latter is complicated and iffy though, and not generally recommended I believe. Michael