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 1vAXwA-002uKf-AJ for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Oct 2025 18:15:21 +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 1vAXw8-00Bo1r-0L for pgsql-bugs@arkaria.postgresql.org; Sun, 19 Oct 2025 18:15:19 +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 1vAXw7-00Bo1i-8d for pgsql-bugs@lists.postgresql.org; Sun, 19 Oct 2025 18:15:18 +0000 Received: from fout-b4-smtp.messagingengine.com ([202.12.124.147]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1vAXw3-0035UM-0C for pgsql-bugs@lists.postgresql.org; Sun, 19 Oct 2025 18:15:17 +0000 Received: from phl-compute-06.internal (phl-compute-06.internal [10.202.2.46]) by mailfout.stl.internal (Postfix) with ESMTP id 7A3021D000AB; Sun, 19 Oct 2025 14:15:11 -0400 (EDT) Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-06.internal (MEProxy); Sun, 19 Oct 2025 14:15:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kurilemu.de; h= cc:cc:content-transfer-encoding:content-type:content-type:date :date:from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to; s=fm1; t=1760897711; x= 1760984111; bh=mjNN0XwMLNzJIU5gVMuRZ4U/BFuAWi8MoVOwOHdBpao=; b=k UdhSqMkJWWHwKwWXi8W2zkJ5qnrUOgHahMTophEr6dWJ25BuHtcvQmT1j4pF0Q1V GV5vMh9JneF7CjsebQClQOD/2VSTGp13eEKL7jXq7r9Ckd6ObuUehbae05ZPrejo brjEfAgKh5XAH6vY9x2xYkcnpBpr7QTwUdctaHx30GGNUwJzbYI9fqXSWLV67Gkl 4BXBZ0GCpFK86/Wc+SOxymSX7Ni6Gh3WnL4Apd9tCU9DY1DTT0n12URqRnl1FcjA Y1XopPFwF/RuynPxgbEgz1ZJAghgbd2TtEyjNK0Z2DmgDssAxhzgKGUnlQzGXlDx OFmFNXsCDZSncrfY5QTKw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:content-type:date:date:feedback-id:feedback-id :from:from:in-reply-to:in-reply-to:message-id:mime-version :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm2; t=1760897711; x=1760984111; bh=m jNN0XwMLNzJIU5gVMuRZ4U/BFuAWi8MoVOwOHdBpao=; b=JKyBwxkCHV0JfWRCa sp/lwjc16TgAT3getJkRMyS3wvM5bHG30YsjE1vobIFN1vqNK78OPd1+2rsoclJK prm799hSKF2Ob8as3nzJLduKwdHmuOk8jLAYsS1w7yWGFr+BFsLXsHzXLPt9Tzoc QKH6xSIqYmVZvKfLLIE+qJyjy2/0+Hml+WL7OJnOmVYDgSOHXYWSVJ8QZjEO/dRT ITUtO8250CmQ+QEnpCrCF2g4j7jWFClYLFORynrAvU9xm2ZnCRrGJB55Zwai697T XvqzbS6hhH3I1LYdtEdZiZblhVr/QrwvoSZpvlUsHwbRqvNfz8sMx7BGdFSwk8yE 9T3Yg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddufeehieegucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhepfffhvfevuffkgggtugfgjgesthekredttddtjeenucfhrhhomheplmhlvhgrrhho ucfjvghrrhgvrhgruceorghlvhhhvghrrhgvsehkuhhrihhlvghmuhdruggvqeenucggtf frrghtthgvrhhnpeetuedvheffkeevgfeuheevteevkefggedttdeufeeuheduuddthfef fffhjeefffenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmnecuvehluh hsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhhvghrrhgv sehkuhhrihhlvghmuhdruggvpdhnsggprhgtphhtthhopeefpdhmohguvgepshhmthhpoh huthdprhgtphhtthhopegtrghsvgihrdgrlhhlvghnrdhshhhosggvsehitghlohhuugdr tghomhdprhgtphhtthhopehpghhsqhhlqdgsuhhgsheslhhishhtshdrphhoshhtghhrvg hsqhhlrdhorhhgpdhrtghpthhtohepthhglhesshhsshdrphhghhdrphgrrdhush X-ME-Proxy: Feedback-ID: ie3de48e3:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 19 Oct 2025 14:15:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kurilemu.de; s=schmee; t=1760897706; bh=Jpo7yDJZLT8wiDi/utfllmRG7sTiUhQ5XUJZkFUGEb4=; h=Date:From:To:Cc:Subject:In-Reply-To:From; b=6UOcMjKQwTFFfTJVboRe/H/xpXAopj2veYOXG74UDUPi+ZeclXNqvBudQX3KA47XJ /CkvJHd01lwuClplRFghEMCY9b0fRzABY2ApAh1+G7rZeQ0mk4ADNW73pmZ3uVmygq fUvTxTAlGFgqsMvDpwhEQR3vvhfel0i8uTnG7aHCiCKnSPsEeMxNeh1siJX5d7pLy0 Czke4B44W6kkCwxIRhR2onb2KyUWvt8rcufG/iP9294XjY4qZCWdLZTtBB+5VYM36A njd/kKpE1XiVgEFaBqsD7fzTnRQsP1ErKDu4M+e9UCRYDTcirtkW/V0GxucRcrpm/e Iax7slUE1ZwHQ== Received: by schmee.kurilemu.internal (Postfix, from userid 1000) id 3D49576; Sun, 19 Oct 2025 20:15:06 +0200 (CEST) Date: Sun, 19 Oct 2025 20:15:06 +0200 From: =?utf-8?Q?=C3=81lvaro?= Herrera To: Tom Lane Cc: Casey Shobe , pgsql-bugs@lists.postgresql.org Subject: Re: Issues with blocksize smaller than 8KB Message-ID: <202510191805.352ktu7f4xp5@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2038568.1760805945@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2025-Oct-18, Tom Lane wrote: > > 2025-10-17 15:39:13.182 UTC [97433] DETAIL: The database cluster was initialized with RELSEG_SIZE 1895825408, but the server was compiled with RELSEG_SIZE 1895825408. > > 2025-10-17 15:39:13.182 UTC [97433] HINT: It looks like you need to recompile or initdb. > > I could not reproduce any of these misbehaviors here. Hmm, but how come two values that print identical result in failing the test that they are not equal? The involved code is this: if (ControlFile->relseg_size != RELSEG_SIZE) ereport(FATAL, (errcode(ERRCODE_OBJECT_NOT_IN_PREREQUISITE_STATE), errmsg("database files are incompatible with server"), /* translator: %s is a variable name and %d is its value */ errdetail("The database cluster was initialized with %s %d," " but the server was compiled with %s %d.", "RELSEG_SIZE", ControlFile->relseg_size, "RELSEG_SIZE", RELSEG_SIZE), errhint("It looks like you need to recompile or initdb."))); where ControlFile->relseg_size is uint32 and RELSEG_SIZE is defined in my pg_config.h as #define RELSEG_SIZE 131072 which would be a signed quantity ... of what size again? The value 1895825408 should fit in a signed int32 (if snugly). I wonder whether something is going awry with that. What sort of platform is this on, anyway? -- Álvaro Herrera PostgreSQL Developer — https://www.EnterpriseDB.com/