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 1uyiB2-00BgzX-GA for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2025 02:45:48 +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 1uyiB0-0047f8-9f for pgsql-bugs@arkaria.postgresql.org; Wed, 17 Sep 2025 02:45:47 +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 1uyiB0-0047ey-0h for pgsql-bugs@lists.postgresql.org; Wed, 17 Sep 2025 02:45:46 +0000 Received: from mail-io1-xd2b.google.com ([2607:f8b0:4864:20::d2b]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1uyiAw-001ESk-26 for pgsql-bugs@lists.postgresql.org; Wed, 17 Sep 2025 02:45:46 +0000 Received: by mail-io1-xd2b.google.com with SMTP id ca18e2360f4ac-88f2740619bso193345039f.2 for ; Tue, 16 Sep 2025 19:45:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1758077142; x=1758681942; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=nNQoCn0KsZtd2UKIUdzt05/Xppv8XbGjHmftlZkvu3A=; b=bkyN/xA4jsjbSith625IWldNh8dZ6tCgsFwqp387QHRso3bmd+W++Wa36oXOmqfEai hx+dgCk+gldOGM4DDHbi6ghTzgFuxWmYeBo1vQrlk7gtJZmFQv4Xc/xaXO26v65229yj njsYhJcyPLfjmLbrG0cqPSNHAT+sFSMLzCAgFFLSbuDdpdYv9hsygP2pZr6yuBqWJuVS Kpm492Md0swv4y1Pp1FUVSl8yKkzEAYfIfOM/ndaUqpX+o5tNaD5kYYowSo41t0Qs2Me /ndOV6r0/KTB45ybKV3p5eU/qfemRnvjaDFjr9glm3R92h3KBSpnnDOtclg9MJVZ0EIN bg0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1758077142; x=1758681942; h=in-reply-to:content-transfer-encoding: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=nNQoCn0KsZtd2UKIUdzt05/Xppv8XbGjHmftlZkvu3A=; b=g/lkrmduOhRFIpysSB+weZLophDus6N1jLE4VWTWZycnytx1BoC3DfYWIvfOe28Ybd 9lje2W+5bHAUGtb3HO5cZ9hCZuySi8Auu6NxXR49H8hsKaPNoSln40EROZEvL4NU3wSj M4RPCccI75jj+dsXL3qpThptPeb9JOWMeHq2zedewLk3KlDHXlACv8hlcvMS0qIblcv1 SDQOQSzuI3MIrYRihakMMuP135rTf1RZBBmoL5vXc5juo/eCz1sR+oUgzCMaATIFYxID kZmZL+wX5VlL3O+QQpR1q8xFQCB22NKy0aFzfbwD4wHe5TPn5eDE9urdPz5sDDeJrU5Q DRJg== X-Forwarded-Encrypted: i=1; AJvYcCWRVVq5dJ81JoGeh4yD6PWe3eTwvtreCkB53JVg6c1Ra7YxOu2xrCg+KBDACaKjUjK+I2GpLBw0XHLF@lists.postgresql.org X-Gm-Message-State: AOJu0YwpYJ5uLbiPDYjq3qcUIPbI8oC2H2Q6/F6Vkr8uacd0bnzvSzrh SoqXl9ZGjR4Qtpe7vteDk51NbTeAht24RfQBJSZsvWSVpYycomDV2dCR X-Gm-Gg: ASbGnct8jVAss2XxRsmM2hzSOguW3MMWlM19aWqjBlQ3i10s3fTPSrLTyeP9iLHZ1Le 6ErwKY4kqP54gEgHX8l/U8kCJQdKey0JhyTtdihoehM5zQX+6Hm7JzlRzWWVHoyH/7PskghGGhN D6vzd0BpMSbFXsSWAk4mQl2n4Cq1pNNG+SoRcVaXDk/vZeKK9/Q2nzu+0epI6nKgDFSyeYB4Yb0 ZZ7Ka/KCe/uV2tmcWyENPAZzPgyWqdIdFSSzhjlqdq13sAKeiUSbVMqqpx4wNk05MFMIs0sc58Q DGoVsxMDfn6Vu4DrNtLo+RAdqWdnmui4CSd6vwVfmbVJHQxc6aSKv5gH19YTUso7hR4UKt6Y4Oz KAIwWmgdYLzHTZ02mYNqnCXQdxZ4ixqusjpqhOqY6soZ4Fo3MFCzU3HnEwl/6kHyslpD/5/da3V xrlSsG4lVDtQ7k8b/AmdAw0TY= X-Google-Smtp-Source: AGHT+IFwc+H4DGlAiIJvz/ONTqb1Z2yhibVUf9/C416WCYb45euXp0t9rallp4ZR4BY2NAlAwHaeYg== X-Received: by 2002:a05:6e02:1d9b:b0:405:59ba:4ef0 with SMTP id e9e14a558f8ab-4241a4d0030mr7271115ab.8.1758077141921; Tue, 16 Sep 2025 19:45:41 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id e9e14a558f8ab-423ff075d9fsm44186135ab.21.2025.09.16.19.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Sep 2025 19:45:41 -0700 (PDT) Date: Tue, 16 Sep 2025 21:45:39 -0500 From: Nathan Bossart To: Masahiko Sawada Cc: Nazneen Jafri , pgsql-bugs@lists.postgresql.org Subject: Re: Read Replica termination occurs when its max_active_replication_origins setting is lower than the primary Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Sep 16, 2025 at 04:42:39PM -0700, Masahiko Sawada wrote: > On Tue, Sep 16, 2025 at 3:52 PM Nazneen Jafri wrote: >> The parameter max_active_replication_origins should be added to the list >> of mandatory settings that must match between primary and replica during >> creation >> >> [...] > > Thank you for the report! > > As reported, the standby could not continue the recovery (especially > replaying XLOG_REPLORIGIN_ records) if its > max_active_replication_origins is less than the primary's setting. One > idea to fix this issue is to require for standbys to have at least the > same max_active_replication_origins value as the primary as we do for > other GUC parameters such as max_worker_processes and max_wal_senders. > It needs to add max_active_replication_origins to the control file and > bumps the PG_CONTROL_VERSION. Given that we've released 18RC1 and > probably are close to 18 release, I'd like to hear opinions whether > such a fix is acceptable or not. I haven't tried reproducing it on older versions (with max_replication_slots instead of max_active_replication_origins), but after looking at the code for a bit, I'm growing skeptical that this is new to v18. In any case, the PANIC provides a clear error message, which is roughly the same as what we'd say with the control file approach, right? -- nathan