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 1x02cZ-004Pni-1G for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 19:52:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1x02cY-009BAI-0t for pgsql-hackers@arkaria.postgresql.org; Fri, 28 Aug 2026 19:52:14 +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 1x02cX-009BAA-3A for pgsql-hackers@lists.postgresql.org; Fri, 28 Aug 2026 19:52:13 +0000 Received: from mail-qv1-xf34.google.com ([2607:f8b0:4864:20::f34]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1x02cW-00000002tac-1sHf for pgsql-hackers@postgresql.org; Fri, 28 Aug 2026 19:52:13 +0000 Received: by mail-qv1-xf34.google.com with SMTP id 6a1803df08f44-90c522298d2so15652626d6.2 for ; Fri, 28 Aug 2026 12:52:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1787946731; x=1788551531; darn=postgresql.org; h=in-reply-to: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=yrSW7wsvjszu1rjgyLXkdS7iOm4bzd/EHL16qqFMzgA=; b=DY25HvPWdiUOT1Ghr2wjYgy7ghOFWL+dgXeu0lD9MKIQAJoj6cobwQo0Pa9YOmqIND zOXrT9bvXc+1la2BGilbUQmdubKBbb8H+oxqnUn99/CoHtm2KDbtoaXD+ZRz8sCC0b8g 42q8jFpBVsZjusqu7G4Qz1bK+FaaP9bAmR3jtxA3BfZSvnzm19TS7GTSS1Z9+cJLHZAu /slOpY7VwjFEKnVhc40YAUTInc8Di41A0X8116W8vA8EA1+8OPHzTdzyfvuWvkDFllW5 0/dbZje+2LCP6Ng120TQMvXxxsHg20sOj9bw8hVb/6omIjgfspemKcBu+35bbyxay1rP +SgA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787946731; x=1788551531; h=in-reply-to: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=yrSW7wsvjszu1rjgyLXkdS7iOm4bzd/EHL16qqFMzgA=; b=h0KGnL/TENGP7r44RAHzCPudUesHHiss6ooeiMQOvs6tiHjDKMx9i7zQryB+IDYkXR VlSGX4mMwrXZHe/ONKMm7jt+Y/pAp0hm2/XO5TtV1Z2ksg0N5apCvElo4K4o+xXFcQmL RY0ClIb76np7mqFYeHxfEPEykuuhJ8NTBwEr73M4YoQuHT4zKJW9xdLzHt/4Xw3BdxAO JEmqosgrP4Qgx4TGzNdEmdkT+VytsUKj3SPBgajhwEWe0aSfdsi4CieJ3YYpA7s7RlkX rImXOx13BJT/n69sGPJyShnMHoX2hFscRu7R9mQsLkyzlzO5aU0igaqWzKkXDMM+Z4t4 zfZA== X-Forwarded-Encrypted: i=1; AKwUvBxJmmVF6+VtPWrXlRO/yvMB83XjQzSLHG0aeCtId9wQjmNuW+J/IKioJ41QTocQN8Vr+VtE616GPWkrsDA6@postgresql.org X-Gm-Message-State: AFuF++nLJb5nnxaeI6pmyw+QUisTFzBjU+U6IoU0BBLSVCdCG1ZyriMB zh7u2a0Bm9+sXX/I2hCoQasn7C2dXWGv+cseRVOY5drgcVaguP5gbx8P X-Gm-Gg: AYBFou0JS3GsP3EULUG7nWXieLc+T74g1cemuttDCZe+EQE+O6dZSdvaYz3ig4jKx9L MZuG+oEtI1MXu++0aYAnUU+sS/QrKzc49xqE8UsqsrVl+a7FY2L2H2CZ1mlv/1AEgTU2mxL9QRx NGPmHs23ViRs736UGDnTQrogchBmbHaMLxmCqy5qxrVjQ1aY1PQuFvb/Ok3xFAXojWM0xTfeT/D nu3J9tsNf4vZIY+ylcuw7OcNjFyfURupHAaKKifXhanl4/7HDJqvZZ8rVb1TpuMUEz7p7O4ro4p JzNhxKy4sVlYXTYIcQfavPwnCqgdaJ3EWk0AaxeAHhsq+hmMDQ1guvQoWE6tVpKlxndaV+Kjntn Jqd0EwQs06VTKJe6fqpTcU4ESfDM838GxVHpi8xs/VnENS4yy+STvPiQACgRrNOJ3XUlUa66WFr mVop8yQE7wK8O9aFmj7bC/iPbPVGQGs4dyzQ4xzXjn1fycECUqFO9+9MM/xP0q8t8LBQ4ESrNA6 umj+NgTrrDWAfHGbo1QfsSKow0iHVFiSWrlL9E8T+uvZOSNCnZSok9qxYliQtbwrQJjF6d8OC6S ZzSxc38KUfs5N50= X-Received: by 2002:a05:6214:5007:b0:90c:be06:f534 with SMTP id 6a1803df08f44-90ce0bf7325mr116789616d6.1.1787946731372; Fri, 28 Aug 2026 12:52:11 -0700 (PDT) Received: from nathan (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-90ce44f5920sm22389386d6.25.2026.08.28.12.52.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Aug 2026 12:52:10 -0700 (PDT) Date: Fri, 28 Aug 2026 14:52:09 -0500 From: Nathan Bossart To: Antonin Houska Cc: Fujii Masao , pgsql-hackers@postgresql.org, alvherre@kurilemu.de Subject: Re: REPACK (ANALYZE) within transaction block segfaults Message-ID: References: <49398.1787944525@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49398.1787944525@localhost> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Aug 28, 2026 at 09:15:25PM +0200, Antonin Houska wrote: > I think there are just two different concepts (for historical reasons?): > vacuum_rel() expects no active transaction on entry, while cluster_rel() > handles transaction boundaries on its own. > > Since REPACK (ANALYZE) is effectively VACUUM (FULL, ANALYZE), I'd prefer the > same behavior, i.e. prohibiting execution both in a transaction block and in a > function: This is probably the way to go for v19. As you note, the analogous VACUUM command has long ERROR'd, and we could always look into removing this restriction in the future. I'd rather do it that way than ship an incorrect fix in v19 that will be tougher to back out. -- nathan