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 1wAjN2-000GkD-1G for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 07:00:08 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wAjM1-00466I-1h for pgsql-hackers@arkaria.postgresql.org; Thu, 09 Apr 2026 06:59:06 +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 1wAjM1-00466A-0f for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 06:59:06 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wAjLz-000000007go-2YTN for pgsql-hackers@lists.postgresql.org; Thu, 09 Apr 2026 06:59:04 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-488a14c31eeso3666265e9.0 for ; Wed, 08 Apr 2026 23:59:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775717941; x=1776322741; darn=lists.postgresql.org; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:from:to:cc :subject:date:message-id:reply-to; bh=aKvvNnQRkQaoaE1VJMIqSMFbQq2GhMbQWr6W+bBu1TU=; b=QWsQRzkdoWWppoHi4X3xaIQbN2QQOPLeKSJwyiGme6M+UlvmWhzdEOXtXpTVl4ACob BlQYNkf1+x/sIMMh/f/R1KKxafgB5Yb447M8xxgkET32uQ/DXg9V95rbDSmzhecp6X8s 9g79+Bbz5Syrw1p+GpbHJmaIYjNkyo6CqrDRCby2TAND8BHSw+tNSiaK6nXHxw4AbDfo R1kIUfPh9FsQUAKfpne1qF5faOKfuGqwjMSrv3A2wgPDHWpVoGfpYSNumx7OX7EIIFN0 sBIJfIc/8dtZ5cihEdEwcPcZDGNET10dI3aL0hHxNJX+O1oLQeJbiaX0lgbF8hN8Psp0 OUNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775717941; x=1776322741; h=message-id:date:content-transfer-encoding:content-id:mime-version :comments:references:in-reply-to:subject:cc:to:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=aKvvNnQRkQaoaE1VJMIqSMFbQq2GhMbQWr6W+bBu1TU=; b=kru5xZ/dck3H+pnCLGhxDplwKMTU9OLOfhRhuZAxNyl6o0+rdbKtHsgLgv+7sirvKP /JZhCrQ2ahYvGPnJ/o66nxE8RK2o7YyKBoVXUg3GTVI0EEyETWmaFoO6652AnBekXtEg nLVVN6wyoAfrB8nWYBY6CFYj8B1K5CO4+sbGQ3EZYI9QxFEMNxxSdCIXwqLni4fgQgr9 4Dp8DYYACcgF5FMRlJ5O61nC8XRSY4TU6TymxjGkLZaa+EdEWnZBV2rxIT8DIN2iUUY/ Jc1k8Lwu+p0FxIdRS88b+9BmbDosZGDfrhidaZ+vqb+6ocbZrxPXue1+XHf+xWgvIsCm A5tA== X-Forwarded-Encrypted: i=1; AJvYcCXpTWsMbI5iYETKLLl6KX4gjldQdWEoEC3loOcEJPAp0ZV2Y0hWQgjmp5Hify6paNyHtK3dQ7iHDOpfERVn@lists.postgresql.org X-Gm-Message-State: AOJu0YyIDtbWZmvdszOXZOJsKbK+f9midJ+3WC+qZPkOVxnFwFrxpIm1 q+1HviZyqMztbx38ziJNO8x0mNK93bEJi1/vslz4Rv+5QtissWn1B9FBQvmoX7vctt4= X-Gm-Gg: AeBDieuzEdZa3lU74+ccOmv8WePUuqQpMJeEztq++DtWvcOJGbyV/ECnMvEHAI3P1Ra dwf3ol+ISA0gdiuPI028RnC8BxNkZiEUpftbIYC9wqBTiN+qXyjkkbKLzBJi8Ko11s8lhe6pPSw ymtiM8DqwP/qM9LVJWt04aToVokCQjuqFVPRFhOZfVAN9xLUipog/DPXf6fya2ymr7uc3Dpl+Vr 7YZAWPPAbrncYMVCRy+yz64rXyzK2dzw1HJ7nkoBwbPeP6K8x6TpTM5QcSHfkO01Azehgl+W8tD pQdSKZNKGq4L+JZlBdhZVObdwMVP14dOC5Ikje8fTcv3tNuD4CSo7gUIGQGPr5NKRpbzk7lOL/e J6u5HbYcDIX3t/W2D/uck2476BERq0XvBsuFgIIV4a3smTR1Cwkn7+GthMWO7QGWoLixZ/Itow/ SbGYidgguOF3kxgIa+/CW/MPqi9jaA2c0vnt0YhAR2MzwlyVc= X-Received: by 2002:a05:600c:c090:b0:488:b683:a421 with SMTP id 5b1f17b1804b1-488b692e9ebmr123436375e9.19.1775717941339; Wed, 08 Apr 2026 23:59:01 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-488cd0b4829sm30635795e9.3.2026.04.08.23.59.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Apr 2026 23:59:00 -0700 (PDT) From: Antonin Houska To: Tom Lane cc: Tomas Vondra , Alvaro Herrera , vignesh C , Srinath Reddy Sadipiralla , Amit Kapila , Mihail Nikalayeu , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: <3074023.1775666853@sss.pgh.pa.us> References: <202604060918.qw5ms7cbr2hz@alvherre.pgsql> <1c197f2d-49a2-4830-8dde-55867218b62d@vondra.me> <19118.1775645206@localhost> <3074023.1775666853@sss.pgh.pa.us> Comments: In-reply-to Tom Lane message dated "Wed, 08 Apr 2026 12:47:33 -0400." X-Mailer: MH-E 8.6+git; nmh 1.8; GNU Emacs 28.3 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <5806.1775717940.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Thu, 09 Apr 2026 08:59:00 +0200 Message-ID: <5807.1775717940@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Tom Lane wrote: > Antonin Houska writes: > > We already introduced this definition above in the function to suppres= s this > > kind of warning > = > > union > > { > > alignas(int32) varlena hdr; > > char data[sizeof(void *)]; > > } chunk_header; > = > > The problem on a 32-bit system probably is that sizeof(void *) is 4. W= e need > > some other constant. Maybe (sizeof(varlena) + 1) ... > = > This seems unnecessarily Rube Goldberg-ish already. Indeed. > Why not just > = > uint64 chunk_header; > = > It will not hurt anything if the variable has more-than-required > alignment. And it'd be better if it were the same size everywhere. That's certainly better. Thanks. -- = Antonin Houska Web: https://www.cybertec-postgresql.com