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 1sRQJT-00FEkP-4Z for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jul 2024 05:56:23 +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 1sRQJR-002Nkp-QO for pgsql-hackers@arkaria.postgresql.org; Wed, 10 Jul 2024 05:56:21 +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.94.2) (envelope-from ) id 1sRQJR-002Nkh-G4 for pgsql-hackers@lists.postgresql.org; Wed, 10 Jul 2024 05:56:21 +0000 Received: from oss.nttdata.com ([49.212.34.109]) by makus.postgresql.org with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1sRQJO-001JzA-0o for pgsql-hackers@lists.postgresql.org; Wed, 10 Jul 2024 05:56:20 +0000 Received: from [192.168.11.2] (p3952216-ipxg13501funabasi.chiba.ocn.ne.jp [122.16.205.216]) by oss.nttdata.com (Postfix) with ESMTPSA id 197EB6099C; Wed, 10 Jul 2024 14:56:14 +0900 (JST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at oss.nttdata.com Message-ID: <7c1b48d8-0f08-4733-a4e6-d55f04581db7@oss.nttdata.com> Date: Wed, 10 Jul 2024 14:56:13 +0900 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: Add a GUC check hook to ensure summarize_wal cannot be enabled when wal_level is minimal To: Robert Haas Cc: Nathan Bossart , pgsql-hackers@lists.postgresql.org References: <6e30082e-041b-4e31-9633-95a66de76f5d@oss.nttdata.com> <802ff3d5-fdc7-4b08-9046-2e9fc5fdae0e@oss.nttdata.com> Content-Language: en-US From: Fujii Masao In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2024/07/10 2:57, Robert Haas wrote: > Here's v2. Thanks for the patch! With v2 patch, I found a case where WAL data generated with wal_level = minimal is summarized. In the steps below, the hoge2_minimal table is created under wal_level = minimal, but its block modification information is included in the WAL summary files. I confirmed this by checking the contents of WAL summary files using pg_wal_summary_contents(). Additionally, the hoge3_replica table created under wal_level = replica is not summarized. ------------------------------------------- initdb -D data echo "wal_keep_size = '16GB'" >> data/postgresql.conf pg_ctl -D data start psql <