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 1wzfaN-0049nZ-2L for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2026 19:16:27 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wzfaM-0046DY-0J for pgsql-hackers@arkaria.postgresql.org; Thu, 27 Aug 2026 19:16:26 +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 1wzfaL-0046D2-2T for pgsql-hackers@lists.postgresql.org; Thu, 27 Aug 2026 19:16:25 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wzfaJ-00000002jO3-01Ne for pgsql-hackers@postgresql.org; Thu, 27 Aug 2026 19:16:23 +0000 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-92e7632b193so15586285a.2 for ; Thu, 27 Aug 2026 12:16:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787858182; x=1788462982; darn=postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to:content-type; bh=Mrh3axC2t9xI1FHvpx2QUfNKr9OgRTxyxPk83TxfcTk=; b=jGfI21g1/HE8Pj87qH5e+2+Dcv6r+Nh9+h1KLLqyjsJmEDd5GM+2LKj86QZEm+XgZo VuLu/50u6kwOT0ol9ifd/DTabT+RvXTs/2wVTELfVqlSFbMY0WQKARWu3cJnfRiUT45E 4QkfYKAtgCzta+MUjqUYPH1doQOpzmn9UjY5KJYIL+TeDj0kBCEZ/2ZBg90yhtjcnxIs 7lTKO76moROM7SVL/IBsZYa7saKBj5cBLp2lBVh0mhm2MV1cM/hL7FvmhttuWSNocjgi oK/IZbzQWjMKZbkJaCp9gXgo8LiJp4IfrT2bPHP2FY9Dq6z7CiwXTIVMGGIwzjspFJQd wNZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787858182; x=1788462982; h=in-reply-to:content-transfer-encoding:content-disposition :content-type:mime-version:references:message-id:subject:cc:to:from :date:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=Mrh3axC2t9xI1FHvpx2QUfNKr9OgRTxyxPk83TxfcTk=; b=XFOA7+SWPeQK4nN/6JaHS8cx82WJeUPurO8YTEtfAwQWF2hguYjIlTkuN4YcDSmtUv RVvu6+Q8KYxE0toonMpXG31ZU2pBGSCsrVnW+7d9I0h/hOuU3N5XvucMK9s9afjWJN4x bBzGqRIGYGfu446D3FgSPqPDO3hwINwyZmT1Js9FcnSqsmX2g8U6Z0hMcYPdBxVOJ08g 4TYWKUJbvA3LFFM+G2QIfcRUJqhms7Px+8+v4YyIH9RuSj5sHAoXP8NHDl9o2QLqwYvu 9sbTk9rbUrlsywRTX0v0icNVCpGEsfKXsPwAWqix52MLbnll7Xw89YGEOLxF6ETCg2e0 7GYA== X-Gm-Message-State: AFuF++nwX0vX/G2NuOkA40oYxMGYjEAOUUZZ5SHBYSA9GESukys6Fdec OYRfXDkDoswk73Zdrd73z1pvKyZxReYO0f7G+cGjhyk9Deh4CMlNV4aLjckVpg== X-Gm-Gg: AR+sD13m2xwP1p8EScwTYZ1HKRjgS02qJe4R/rLbwxLRmqCIxRPgU4l3sLLE9oIsFCs 6BxMNRaJD9855ZZhuvwUu4AGJYP+zC2hiRstdEQIGXURBCf3x43mGEq7pU6DZvYv6nFz69r8ASY y/PEXrU9GRzPah7GwcqlucKpuPqsYKukqViG6grieaGFR9h/gQz6kzxuiemuCylSrKnbu+9MW8g 5v5Uu3Isdg2b8t1WU3cb9MlDSbiQrIoKsoVGskhyryY09wvHBu6IqwXH8jUAQcf1P66A9BuZ5IY m1kvXRhr3/SgTX4swaqbAqcJcmLZwdRWwbCKEfaVSJqP9syWDAClOlIOxGRh70X5KuvHb/1KZBs X0ekIqNq0eUeKpcIdo1V5AITDByY7mg9+76fiPktOKcNLiJ2+KLmdttjTO5efRdie4INbk7nH04 pOe/pgbkQvH4uNBMT0/A92RHZ+yNfi5MPIJlGaNfw8VcEQapQaeQ/cEwxgZ+MN3ztwsDT2fHtkG u/tN4vLbl8MBUf4+EIgeeYo7gbCLUyiwTfKEt58pBc5HODkeRa+iJIFhmnktcx9SOr7JGrai649 Vt6/kp8NVaIFhu8qqPI14kPUO4Y= X-Received: by 2002:a05:620a:a913:b0:939:2e1:91b1 with SMTP id af79cd13be357-939139b0e77mr103961285a.42.1787858181972; Thu, 27 Aug 2026 12:16:21 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id af79cd13be357-9391370af92sm31894085a.10.2026.08.27.12.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2026 12:16:21 -0700 (PDT) Date: Thu, 27 Aug 2026 14:16:19 -0500 From: Nathan Bossart To: Bharath Rupireddy Cc: pgsql-hackers@postgresql.org, alvherre@kurilemu.de Subject: Re: REPACK (CONCURRENTLY) doesn't check the table AM Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Thu, Aug 27, 2026 at 11:59:10AM -0700, Bharath Rupireddy wrote: > On Thu, Aug 27, 2026 at 9:23 AM Nathan Bossart wrote: >> REPACK (CONCURRENTLY) replays changes by decoding them from WAL, so it >> needs the table AM to be logically decodable, but >> check_concurrent_repack_requirements() doesn't check that. Should it be >> restricted to heap for v19? > > Logical decoding doesn't check the table AM type, but goes ahead and > decodes the WAL records (for that matter, none of CLUSTER, VACUUM > FULL, and REPACK have checks on table AM. They hand off at some point > to the table AM layer). I'm not sure if gating it just for concurrent > repack is the right choice. Is it that we want to have it just for > concurrent repack since it's new code with a new logical decoding > plugin and we want some field reports of needing it for other table > AMs? If the other commands are similarly broken, then perhaps this isn't a valid open item for v19. But IIUC concurrent repack is the only one of the commands you listed that depends on logical decoding, and if the table AM doesn't support that, then it won't work properly. -- nathan