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.96) (envelope-from ) id 1wAIqb-002FeP-2H for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 02:40:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAIqa-004Dht-0s for pgsql-hackers@arkaria.postgresql.org; Wed, 08 Apr 2026 02:40:52 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1wAIqa-004Dhl-00 for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 02:40:52 +0000 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAIqY-00000001911-21mU for pgsql-hackers@lists.postgresql.org; Wed, 08 Apr 2026 02:40:51 +0000 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-2b0c8362d93so36140685ad.3 for ; Tue, 07 Apr 2026 19:40:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1775616050; x=1776220850; darn=lists.postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hZ3YZLBVtfHDhQsk3z7ojUcaYEaCzSfilu7c/aozR3o=; b=A7jX+68IHCirr1LielBTWT7M8JhrWt/RCTRFsM09Rrp7bAbSJH2FnogtrKexct+9kq rdO68Ppv6OSd/4RaO65wTWqVQtc7CILKdjSMOeTb/EIyiqH3er/yiZ21lHF6c6AXllFj t6o9FO+N651g/28S/F8mrTD4JK4gdWlkp0IV/weSEzGXVQTDGgY2N7eBRoEoYJw/9aFC V47OtliM+AfOWlWhH0J1FzjdA6GNISjYFL/g06JdAeQ1Cj/6nPD9WdNGrej9k4LofcfI L0UUEkv11Yt2yS1DAOmoz556kr7lY2yodgJ0RKV4QUyyV6LLY7U3Jqe4o3Yoq/G6SZvb ZjdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775616050; x=1776220850; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=hZ3YZLBVtfHDhQsk3z7ojUcaYEaCzSfilu7c/aozR3o=; b=f15uac0Z1+Eb98DFHCK7rqYzHt8gxYOKmn+5f/6ApTLoFAJ5MVMcVdu+IcbONU/6bB asfvdZ3V3YlFErbfCXj7pTweekRkSNjgKH/xRJPwF9UnLu4oZ/DmZHesfTQkF+Rd52B4 O7xNrrFt4juh8g8mLsqhI1EY9l8ZCTSriC1kVns447uB0gMAq7LjPmm9fyBBQi+ZuC1l k40SPDO5VymXZS3gYEGQRxudbSa+kzf8ixvNLIl9j6J7MeeUODpYUp6We0AT8ywAt0c2 1kGDhVB142YttYd188CRzPr0EiYL19IjiRbarZSkDc/7b4rH9UbDVl9FfY5wIaiPO8Y/ uN0A== X-Gm-Message-State: AOJu0YzI3o9/fCJGeY2JppqW5/LzGtIONEqaIa/V7DAcPwLkKnZp+JP/ wo0avl8esGYZWy8pNUVYwNrOHwc+IEnSU79soSwNVg3oT2Bgw8BaQq/DQXcwNWZ0aDzQLA== X-Gm-Gg: AeBDiet8+Ga7EjA338uL0kZprHhOLv0ShG4JRbJvwbrYU/gRN+4ZiG2uSTggHexue4K NIsiMSAUPkcB8ApAKgazsK5zTXIGOaRhn+34nYrmRfrXUgWXgjrGRA2RSSLXhShYpYNBekDLq9n hhn7xxXMAYaglX5ltsu7qKLCnAUjqDGln3NtAnJF4ddRmipohWO6hvDG4Cqzh6l2Y8RL1rOa2GP 7nJOOk5pT7QzVriHzYN4jKJrS9rBeUuBZtZPW0CEd80Z1Hn3KwKwtlEclr9G2TFKr6j5BSD/WFW 9LTRxlkIPhuDqm5eMKlCp4JEgfBMuTv7YGlMZZnd0oWMQV2fCB4i8CcZEHNsh3YPS8cXoDqe5Kc QjbDxj32Eogo0Zcn9Q563GKGrQ2MNZJNI2etiKxTmpS7PH8y8QySN6TMOAPAkCwurmt7CtCXPTO dSwUW/gXomTTv1H8eET9HdPYzXy5NsJ+Y= X-Received: by 2002:a17:902:f54f:b0:2ae:5eab:132e with SMTP id d9443c01a7336-2b28173fa9dmr198005365ad.12.1775616049509; Tue, 07 Apr 2026 19:40:49 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b27497af47sm246472005ad.42.2026.04.07.19.40.47 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Apr 2026 19:40:48 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: doc: Improve wal_level and effective_wal_level GUC around logical replication From: Chao Li In-Reply-To: Date: Wed, 8 Apr 2026 10:40:10 +0800 Cc: PostgreSQL Hackers Content-Transfer-Encoding: quoted-printable Message-Id: <33F33315-9A7D-41A2-9F37-0A361E5A4C7F@gmail.com> References: To: "David G. Johnston" X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Mar 4, 2026, at 23:55, David G. Johnston = wrote: >=20 > Hi, >=20 > In evaluating the proposed change to wal_level docs in [1] I found it = to be undesirable, but the discussion and my own review discovered some = other changes that should be considered. >=20 > Since effective_wal_level now exists, Logical Replication Getting = Started needs to be updated. > Add links to the main topics that the different levels apply to. > Be explicit about the ordering of minimal, replica, and logical. > Move the behavior of effective_wal_level to the GUC for it, leaving = behind just the pointer that wal_level is now just a "minimum". >=20 > David J. >=20 > [1] = https://www.postgresql.org/message-id/CA%2Bv5N42vKtY17653eBHFx%2BCw06E2fSm= PrXmX2qKYG23%3D4Ycd7A%40mail.gmail.com > A few comments: 1 ``` --- a/doc/src/sgml/logical-replication.sgml +++ b/doc/src/sgml/logical-replication.sgml @@ -3508,11 +3508,12 @@ pg_ctl -D /opt/PostgreSQL/data2_upgraded start = -l logfile Quick Setup =20 - First set the configuration options in = postgresql.conf: + Ensure that is at least = replica + (this is the default). -wal_level =3D logical +SHOW effective_wal_level; - The other required settings have default values that are sufficient = for a + The other required settings also have default values that are = sufficient for a basic setup. ``` I think wal_level should be at least =E2=80=9Clogical=E2=80=9D. I = don=E2=80=99t get why did you change to =E2=80=9Creplica=E2=80=9D? = It=E2=80=99s clear that we still need =E2=80=9Clogical=E2=80=9D to = support logical replication. 2 ``` + replica, which writes enough data to support + WAL archiving (see ) = and + physical replication (see ) + Running read-only queries on a standby server. Below that is = minimal, ``` Here, =E2=80=9CRunning read-only =E2=80=A6=E2=80=9D sentence looks not = smooth, and there is not a period for the last sentence before = =E2=80=9CRunning". The old wording was =E2=80=9Cincluding running = read-only =E2=80=A6.=E2=80=9D. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/