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 1wA8rk-0026Nb-08 for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 16:01:24 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wA8ri-001GcX-0d for pgsql-hackers@arkaria.postgresql.org; Tue, 07 Apr 2026 16:01:22 +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.96) (envelope-from ) id 1wA8rh-001GcP-2m for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 16:01:22 +0000 Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wA8rf-000000018Wi-2pj1 for pgsql-hackers@lists.postgresql.org; Tue, 07 Apr 2026 16:01:22 +0000 Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-38df1889fb9so29146371fa.1 for ; Tue, 07 Apr 2026 09:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1775577679; x=1776182479; 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=+lEdLgm4w0rEQ1qjS3cUyYQxJVPtdhPDX+ucHgirON8=; b=WjJize8mzhs/cNvucWxFgHszPCRzMB1DkB6Y7z8wn/h+Pc8M2H3TBYgytcBjKI0Tfo nzPm8PefgGPSTum4mtqqlvcEyeGjICpf0y+WMmJCvQp99LtOzYr2/76avzgMC5aIAhGi ogAzWKQ2ND8VwpL3RdCEuzP1ItAOfpqsGmOF0CmW1p2+1g2G+MielthBiYTBgsNrrWBc kR+BvixT7kmB+iaYj6CYjJ5p39Aq1pQE/DEh3oNHxergmciT9yys+vDkFvLbr1IgBrSV 1Q6pDDVo65x/jLan70ty6ESSrLeG5ldhQg63UmhqJ9Ff7EsqfTSK475ptd0nee0SQJn/ +ETA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1775577679; x=1776182479; 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=+lEdLgm4w0rEQ1qjS3cUyYQxJVPtdhPDX+ucHgirON8=; b=NOce9hHyFbr4QUnTSJ9OuGozaKgRXL/1fV6DX4EOWGy69Wew5CKcvKj7y/O+KNmigc q1vifIjHYieIM/RuqrHCZ2dGI1a6lmJf2LdgHK1dVbQIhOZ09j47fZ8lqDpnj4Juhmw1 R8f/ZeVeobtEW2e71TLle873qWz/6DDCBy7TiBZzNC9gwVAtuf2Z2LTl0SvGUEFlkAYP 5uo+qUBWRxeOIMBOWtFnjaiFhTtm4gCj6aOUibf5Yarud9fl0QoEM1rzCPmHBH6Paehb yiBSFwUWeEv4nxHFiLfjy4QdniXOzhBjSdxl9QH4jFvNBhtQsXAcW/rrhaOYHnPhx33Y yPxQ== X-Forwarded-Encrypted: i=1; AJvYcCUjILvZXykFmeSX7OyyjeTamv1xgAtIWpX+djwgrXJwGLIFlRDUOCQfI1lgAaRI8QLIx2NLdXq1emNGPJPl@lists.postgresql.org X-Gm-Message-State: AOJu0YxneZ7rggLK7AIia0YVqWTAxJKHuK2IAvb399DOCQaIM+nzU6/n clxSnl/8mT0raVMlGqhWNRlJZlULDXFaDWp/VSSp9AVAu0ye00GJSSITlq9IOs/8hNU= X-Gm-Gg: AeBDieugM7bxqVcsfsU964lJXqK2NcwQ+3P0QpTjLYzLR+l1cjnubev5JLzlYPdy37g atdUxmF4s7/A7r3S4/SA8XmU1ZRsLT1Eu1+S23UDdISAq8QDbPPxpZ/vzjyHeIM+hVhMVDWzuip DDSmahTWzrT70I8K3z5iAHUfR7Qj2f1wXlyN8YPIyXylt8a20awTA5ZQQrfP3rDZLkn4D+jv96h /wGklIxME6QDacOLQTVpLSu0mTnQRoiid3su3DaVzDewpuUqz6AzvL1Zh9dNz0+3KOrRFH8gNbc hQvXD/g62O8oeSXZpoQbvqAqxICv5yESgP+4Ug1D8o88LmUoSX28UoJoAO1NW4aCrb6enjjWA/k 784UifWdEkfEccmnEPBilqtuTIuQbvWhfmPWykh6juQiQdsTf/MaRUZ6yJgfR0+S0/X68+DHnuT PSWSS2NRzB4lIegHvTgfcv1ydy6o16PzsqSUe3 X-Received: by 2002:a05:6512:a88:b0:5a1:1496:922 with SMTP id 2adb3069b0e04-5a3375852aemr6431387e87.33.1775577678913; Tue, 07 Apr 2026 09:01:18 -0700 (PDT) Received: from localhost (109-81-168-142.rct.o2.cz. [109.81.168.142]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5a2c6ccdefcsm4158516e87.68.2026.04.07.09.01.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Apr 2026 09:01:18 -0700 (PDT) From: Antonin Houska To: Andres Freund cc: Alvaro Herrera , Amit Kapila , Mihail Nikalayeu , Srinath Reddy Sadipiralla , Matthias van de Meent , Pg Hackers , Robert Treat Subject: Re: Adding REPACK [concurrently] In-reply-to: References: <202604071230.b5axxf3qna3m@alvherre.pgsql> <227677.1775576304@localhost> Comments: In-reply-to Andres Freund message dated "Tue, 07 Apr 2026 11:48:42 -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: <230041.1775577676.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Tue, 07 Apr 2026 18:01:16 +0200 Message-ID: <230042.1775577676@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Andres Freund wrote: > On 2026-04-07 17:38:24 +0200, Antonin Houska wrote: > > The REPACK plugin only deforms tuples and writes them to a file, so I = think > > that things like this should not happen. > = > You don't need to do it yourself. It just requires a shared_preload_lib= rary > extension to register a relcache invalidation callback that accesses sha= red > catalog. > = > It's only kind of an accident that we don't have a case today that acces= ses > shared catcaches during a relcache build in core (I'm not even sure ther= e's > nothing). You'd just need somebody to add e.g. relcache caching for > publications for that to change. Or look up information about a reloptio= n in > pg_parameter_acl. Or lookup tablespace configuration. > = > = > > However, I admit that an option that allows the plugin developer to de= clare > > "I don't need shared catalogs" may be considered deceptive. > = > At the very least it would need to be a runtime check rather than just a= n > assert. This would much more likely to be hit in production because othe= rwise > it's probably hard to hit the case where shared invalidations happen in = the > wrong moment. And the consequences are corrupted caches, which could ca= use > all kinds of havoc. > = > = > But I think this may need more infrastructure / deeper analysis than wha= t we > can do right now. ok, thanks a lot for having looked at it. -- = Antonin Houska Web: https://www.cybertec-postgresql.com