Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rTHcT-001diY-Nc for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jan 2024 08:31:26 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1rTHcS-00Bssz-G6 for pgsql-hackers@arkaria.postgresql.org; Fri, 26 Jan 2024 08:31:24 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rTHcS-00BsqI-60 for pgsql-hackers@lists.postgresql.org; Fri, 26 Jan 2024 08:31:24 +0000 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rTHcP-003n5H-CS for pgsql-hackers@postgresql.org; Fri, 26 Jan 2024 08:31:23 +0000 Received: by mail-wr1-x42c.google.com with SMTP id ffacd0b85a97d-33ad3ee50e4so160888f8f.3 for ; Fri, 26 Jan 2024 00:31:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706257880; x=1706862680; darn=postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=XgGQ9bYmIm1x3Uj+mxKpLNVG8UxivThWfezk1jRohTA=; b=ABVmjw7v3oheDxPa/rOCy8Ho49ehG9FlP9sjjQcWCt0kh0F7+URt2OjRM6yYnc+x8P dms+tYvriehTupH+naG/7YB1nyZjGyAfXg3o8+TxltdybKGBEzDyaxJDhqY77RDi+tAj pZkW1DTJxk28VIAj47gOn3b0N9JkKK2gi2G3mxXCyd4smCARDZ7bbkGTPWjTSpEJPM1y 7EcnsPUchQ1ywbDIDxZit0ABAXXjDtO3GDNOm6BbOpM0GD4tsicmCukULADJhQBrntdR /DlaiGv7uXmEOBtk/yL562muYTka1Q0MWWiMX+vd91lq7B4ZmCUVcGIdaTxQrM9Nj8fJ JRbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706257880; x=1706862680; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=XgGQ9bYmIm1x3Uj+mxKpLNVG8UxivThWfezk1jRohTA=; b=bkWp5fMvwLgZlOVf614Is7tctOg5QGrPCstfeYHw12WY5pa9MWJ7zBO5BD3LmpR+Dr Lrk0CPru7s9QGKBR3GJ3Qy0tEJTOjuSdA2ewsFuygfpN21x+Kfb3B3XrZg9+g5A5EC9K 1yFSvtBpkvFZrNw2tT/XFwTh8iJ0IMJEVa0aUuYeyHMdGieK2Kb8sdwr4lBvGxYjeD2a XaO3LSEa6UMInFkTLVqtgOX/hGX/ZnfvKo/Cx7B+EJokNgLU08g37+RQn430aq9JJ0zh 7L3QlME/n7B8ugJLgrAjgUJeRgt+R8nbl3YmMIlEK2LqG/D1YTK4KIw/cuYm2ipvO1ix G/ng== X-Gm-Message-State: AOJu0YyJEny2Dk8f5IzBDZovOyMhwYuzOHo3dOvtbLs3zvQfLwe+38Un ahGdQKoyAfwgPjLnUYKxa8sXJ4ZNsgiii2uePuLIqbvlyZeytEvL X-Google-Smtp-Source: AGHT+IEvghgWOPRIi7ivAby2uRi4Ft2d0oMlXyPVn/pA+fkhFJYTOxE1V//KUdXMgAa2jJX7ZXGpwg== X-Received: by 2002:a5d:5545:0:b0:337:43c2:d17b with SMTP id g5-20020a5d5545000000b0033743c2d17bmr373231wrw.77.1706257879932; Fri, 26 Jan 2024 00:31:19 -0800 (PST) Received: from ip-10-97-1-34.eu-west-3.compute.internal (ec2-15-236-134-5.eu-west-3.compute.amazonaws.com. [15.236.134.5]) by smtp.gmail.com with ESMTPSA id b11-20020a05600003cb00b0033926505eafsm746427wrg.32.2024.01.26.00.31.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 00:31:19 -0800 (PST) Date: Fri, 26 Jan 2024 08:31:18 +0000 From: Bertrand Drouvot To: "Zhijie Hou (Fujitsu)" Cc: Amit Kapila , shveta malik , Ajin Cherian , Masahiko Sawada , Dilip Kumar , Peter Smith , Nisha Moond , "Hayato Kuroda (Fujitsu)" , Bharath Rupireddy , Peter Eisentraut , Bruce Momjian , Ashutosh Sharma , Andres Freund , pgsql-hackers , Alvaro Herrera Subject: Re: Synchronizing slots from primary to standby Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On Thu, Jan 25, 2024 at 01:11:50PM +0000, Zhijie Hou (Fujitsu) wrote: > Here is the V69 patch set which includes the following changes. > > V69-0001, V69-0002 > 1) Addressed Bertrand's comments[1]. Thanks! V69-0001 LGTM. As far V69-0002 I just have one more last remark: + */ + if (sub->enabled) + ereport(ERROR, + (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), + errmsg("cannot set %s for enabled subscription", + "failover"))); Worth to add a test for it in 050_standby_failover_slots_sync.pl? (I had a quick look and it does not seem to be covered). Remarks, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com