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 1x2TRf-005n0F-2H for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2026 12:55:03 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x2TRe-006aaA-1a for pgsql-hackers@arkaria.postgresql.org; Fri, 04 Sep 2026 12:55:02 +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 1x2TRe-006aa0-0R for pgsql-hackers@lists.postgresql.org; Fri, 04 Sep 2026 12:55:02 +0000 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x2TRb-00000002ueh-1ksK for pgsql-hackers@postgresql.org; Fri, 04 Sep 2026 12:55:01 +0000 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-49b392ccaacso15313635e9.2 for ; Fri, 04 Sep 2026 05:54:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1788526498; x=1789131298; darn=postgresql.org; h=message-id:date:content-transfer-encoding:content-id:content-type :mime-version:comments:references:in-reply-to:subject:cc:to:from :from:to:cc:subject:date:message-id:reply-to:content-type; bh=WD9gfg9eCh1EUBPESdlGpGXcxu9D6QMOeROD7jJmD1I=; b=hfRtkqqDN60Vc7pZGbam9w6E2pmyhq46wBGqYTck/6GOQv7diWhFD7ytRseOyHid6T O1cbrP3w6R0O/3HBaR2ewXTi1irVFLY5ul3YNfD5IVQNhWeo+kfMnDmahx4r0JVwh3j/ /Av1uQnIAFR5oZ1dKELm5hfDRp37t2XYCf0LSqWnaatTI3/TrYBtCbnMfZnZTUiGGd2d T9hI/rYpfaa5a3EkP8ZJ5yaN75lRrC0Poz7LtrclSCZO+VPC78BD+lt90n3jBm1eRHel pDA78DRayoafh0/m5E4cAHEweyY/t5apm3CEKaecF7vuGwVuZtD4pKCKQfoGcSIrNemi xIwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788526498; x=1789131298; h=message-id:date:content-transfer-encoding:content-id:content-type :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:content-type; bh=WD9gfg9eCh1EUBPESdlGpGXcxu9D6QMOeROD7jJmD1I=; b=FUzOgIIQluqW6N7YrHouKSwutC+O92BGLrNQRyXxP0mwnEfth5TceNsZ+GpEPyertk TBnd3C4p72fuo19p2aNyWk4m7loXjYMLXOEDDWw/2sdXzUOgT8MnpGBjc7ADIlIXmbxo XNKZ4/HWXfHf8zEQn4YRZqYOlcvC8Nk7NOo8GvhbQf8lT+VejeYc99Y51W3iKbrUm/ue G9xxDxf+EkBdWG/3gtI2hWr3z+C6eOZ5pZN4hc8LJbzuH4kqkzUjfVhHWcRhVHZPlZ53 o9IiPqze7rRyReSF24/SeGH/ff/jkvpLR5esKn6kTxlPzeZY+xamwaFh1y2cEBiu26gA +YJw== X-Forwarded-Encrypted: i=1; AKwUvBwTGXYdkFXeWxv2pzk+Lt8dz5B2Z73v3RKuLCF05WMKdR6EVm3dhGGwa3nfXFEgTJcACgwNRKUOyKrbh4ji@postgresql.org X-Gm-Message-State: AFuF++k/f81hMXUW24VUQyJnqP3jlar9Y2duAfzhPjLgbWBnvdH3v2cZ sKNBVm52FAf6//BBEEMoyEePcyqv2/68yyj9a2x9fKsZYhuobUzP/9J+S5ymMT7e2Yw= X-Gm-Gg: AYBFou00R/5A9IgGG8xB+HEyR3pvSI5MDpz7v+HTXexY6o86Hg4LVprvVZ0TPGPt/if sR5BT7roLopuNZ5KI/x0tjCYWYcHl15GNoGzl2GvhbJfeSl/ih/Ig2+dusrj6FAgR0Co06numiy WpO7JCwGx1L7YBVBBVz1uq0GyLkxDjRkxx34cz/rXgWiYI0Ob8BjIt5RCtq9pCeoQQoJSmR0qZx lWluju2ehpz6bJZFVQucRQjW6HLq33vZQ26E/RVA/GJEG8DJwB/JYx07AylZFTKpeQIbX+fuUX1 jlbNaIbhzUNuBT0yPyrZGB9IiBkBO1b4DCFxstvz3Q7cA/TIaED+1+5xr+paFMDVeBprH2wyE2O s+Mp37tbD3fO0Ar/U/DREeg+kjURQEzhPumY4Kj52Z7AyZr0u4Jspj6PAdLS7JLA+OYwGEgmV2Z wOYBZuRJg55AZqaNTeBwOMqZ9IULceig+ir9QMihFgQHmArbat3qBDjWpnOVr0GLMy/XZh00yWu A== X-Received: by 2002:a05:600c:1551:b0:49c:fa21:1c89 with SMTP id 5b1f17b1804b1-49cfa211d5fmr40345025e9.30.1788526498263; Fri, 04 Sep 2026 05:54:58 -0700 (PDT) Received: from localhost (109-81-170-190.rct.o2.cz. [109.81.170.190]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49cf772bd2asm62398575e9.11.2026.09.04.05.54.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Sep 2026 05:54:57 -0700 (PDT) From: Antonin Houska To: Osama Abdul Qader cc: Fujii Masao , Alvaro Herrera , Nathan Bossart , pgsql-hackers@postgresql.org Subject: Re: REPACK (ANALYZE) within transaction block segfaults In-reply-to: References: <15397.1788338846@localhost> <5477.1788410526@localhost> Comments: In-reply-to Osama Abdul Qader message dated "Thu, 03 Sep 2026 23:05:09 +0530." 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: <18947.1788526497.1@localhost> Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Sep 2026 14:54:57 +0200 Message-ID: <18948.1788526497@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Osama Abdul Qader wrote: > I've updated the patch to address your comments: > = > * Documented that 'REPACK (ANALYZE)' cannot be used inside a transaction= block, or from a function, procedure or 'DO' block. > * Updated the comment in repack.c to clarify that this restriction is in= tentional for now, consistently with VACUUM (FULL, ANALYZE). In [1] I added a comment explaining why it's a problem to run REPACK (ANAL= YZE) from function. I thought it's important so that, when we conclude (in the future) that running in block is fine, we still keep checking for executio= n from a function. (PreventInTransactionBlock() checks both at the moment.) In [2] I was advised to make the comment more precise, but as you appear t= o have taken the patch over, I expected that you'll do that. However, you si= mply removed that part of the comment. Can you please explain why? BTW, "top posting" is not the preferred style in this mailing list [3]. [1] https://www.postgresql.org/message-id/49398.1787944525%40localhost [2] https://www.postgresql.org/message-id/CAHGQGwEezdMUixhJ-N0YO0OFUmh0uPa= XRDkds5FS-5dmdwz4Bg%40mail.gmail.com [3] https://wiki.postgresql.org/wiki/Mailing_Lists -- = Antonin Houska Web: https://www.cybertec-postgresql.com