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 1vskTa-000CGr-2W for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 16:32:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vskTZ-00Gs0d-2d for pgsql-hackers@arkaria.postgresql.org; Wed, 18 Feb 2026 16:32:33 +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 1vskTY-00Gs0T-2F for pgsql-hackers@lists.postgresql.org; Wed, 18 Feb 2026 16:32:33 +0000 Received: from fout-b3-smtp.messagingengine.com ([202.12.124.146]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vskTW-00000001F5Q-0aCH for pgsql-hackers@postgresql.org; Wed, 18 Feb 2026 16:32:31 +0000 Received: from phl-compute-04.internal (phl-compute-04.internal [10.202.2.44]) by mailfout.stl.internal (Postfix) with ESMTP id 94F9E1D000E9; Wed, 18 Feb 2026 11:32:29 -0500 (EST) Received: from phl-frontend-04 ([10.202.2.163]) by phl-compute-04.internal (MEProxy); Wed, 18 Feb 2026 11:32:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm3; t=1771432349; x=1771518749; bh=qO6HUqdId0 RaYijvsrLXBo5BX78P10qH84Vz68ldbLE=; b=EC/N99+NGSVDj6j3bmITt9p+sg KI9wRZs8/IBATFPNU37awGjlqNkT1TXo9WEK/t1rDJN6HIQ61Om8KVXT8oW5az/9 WMIs3zqpkzWISg364TodCuWxe0wALN51QiP4Whiniv8X/7kJ9IboSCN3yAzYsqIy AierqrUSU5FiKnXVbJ4OniWlzfv4DatX8o3TS6RQA6pNzYx5teF9fQEwz4XNJcyz B0FNOTAa5eL/uv1vONdKuGpLR9rZcOZE/srxuC+nR/jiqnxIf6QAtWopmuL6Im6L /nxYuE8Dm7ZL+AmoKb92vz++lBKK2R7iqO/KXhB/Bl7zouCtzJ3IYo1Lvgkg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm3; t= 1771432349; x=1771518749; bh=qO6HUqdId0RaYijvsrLXBo5BX78P10qH84V z68ldbLE=; b=KP+Nc1VzFG32WdNPGSbpbeX3aJIcx1GOiAx5qbwLCTwUsSr4/+P ay7yM2c+uP3wGp4FJs064t//HT9aLNPnfnH3G7/sh2tIdz2/P5BeV0ifScHYGfK2 AafInWVFOLjcSpxDRn6hs2i97/4pGwu6WrvZlf02hlWMdMEuFyi15w8vW+tw79j2 79vh5ZhJEI5V7JXKU5X6fxr+NNkoyNtRLH9ACMEjU1csHvmB1ozoYkpC9sLP2yei +Nf9/mRhl1xt3QubMPB6vumGrbKnkB2Buh2e65Rjwn5A3LISnqBy33kQPzSYwvcN 98DtkYG7uj+LCpnTQs2jSWso5Y9bWG6FfNg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefgedrtddtgddvvdefudefucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkfhggtggujgesthdtsfdttddtvdenucfhrhhomheptehnughrvghs ucfhrhgvuhhnugcuoegrnhgurhgvshesrghnrghrrgiivghlrdguvgeqnecuggftrfgrth htvghrnhepfeffgfelvdffgedtveelgfdtgefghfdvkefggeetieevjeekteduleevjefh ueegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprg hnughrvghssegrnhgrrhgriigvlhdruggvpdhnsggprhgtphhtthhopeeipdhmohguvgep shhmthhpohhuthdprhgtphhtthhopegsohgvkhgvfihurhhmodhpohhsthhgrhgvshesgh hmrghilhdrtghomhdprhgtphhtthhopehrohgsvghrthhmhhgrrghssehgmhgrihhlrdgt ohhmpdhrtghpthhtohepthhhohhmrghsrdhmuhhnrhhosehgmhgrihhlrdgtohhmpdhrtg hpthhtohephhhlihhnnhgrkhgrsehikhhirdhfihdprhgtphhtthhopegrnhgurhgvfidr phhoghhrvggsnhhoihesphgvrhgtohhnrgdrtghomhdprhgtphhtthhopehpghhsqhhlqd hhrggtkhgvrhhssehpohhsthhgrhgvshhqlhdrohhrgh X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 18 Feb 2026 11:32:28 -0500 (EST) Date: Wed, 18 Feb 2026 11:32:28 -0500 From: Andres Freund To: Andy Pogrebnoi Cc: pgsql-hackers@postgresql.org, Heikki Linnakangas , Robert Haas , Thomas Munro , Matthias van de Meent Subject: Re: Lowering the default wal_blocksize to 4K Message-ID: <3r2far37ustqtoy62i4l2et5y46thkztzeyrwharxk2fzllndw@kvztwwijbcez> References: <20231009230805.funj5ipoggjyzjz6@awork3.anarazel.de> 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 2026-02-18 15:26:24 +0200, Andy Pogrebnoi wrote: > The Windows tests are failing on `Assert("check_GUC_init(hentry->gucvar)")` > for wal_writer_flush_after [1]. It doesn't make much sense to me as both > load- and C-value for the wal_writer_flush_after GUC are the same constant: > > src/backend/utils/misc/guc_parameters.dat: > { name => 'wal_writer_flush_after', type => 'int', context => 'PGC_SIGHUP', > group => 'WAL_SETTINGS', > short_desc => 'Amount of WAL written out by WAL writer that triggers a > flush.', > flags => 'GUC_UNIT_XBLOCKS', > variable => 'WalWriterFlushAfter', > boot_val => 'DEFAULT_WAL_WRITER_FLUSH_AFTER', > min => '0', > max => 'INT_MAX', > }, > > src/include/postmaster/walwriter.h: > int WalWriterFlushAfter = DEFAULT_WAL_WRITER_FLUSH_AFTER; > > This constant was introduced to fix the same issue [2], but I suppose no > one checked Windows builds. Windows clearly has an old 8kB value for > WalWriterFlushAfter during the check. I suppose it is something with the > CI/build. But I have zero experience with building anything for Windows, so > any tips on where to look are welcome. The fact that the test do pass for msvc (which does not use ccache), but not for mingw (which uses ccache), does point towards some caching issue. We've had some caching problems on mingw before. I don't fully know what's going on, but there clearly is something wrong with ccache here when using precompiled headers, I can reproduce incomplete rebuilds with ccache's direct mode on linux, cross building for windows (first thing I tried). If I rebuild with a changed xlog blocksize, I get *some* cache hits building the backend, despite pg_config.h having changed. I think the problem is that ccache seems to not record a dependency to the pch file in its dependencies if the pch file is included via -include, if the included header and the header.h.gch file aren't in the same directory . That leads to the pch file getting rebuilt, but then ccache just uses the older cached result for the .c file getting built, because it does not recognize it would need to be rebuilt. I'll go and report that to the ccache folks. Greetings, Andres Freund