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.98.2) (envelope-from ) id 1xFBaT-00000001TWB-1pYF for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Oct 2026 14:28:41 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.98.2) (envelope-from ) id 1xFBaR-00000000Qls-115q for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Oct 2026 14:28:39 +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.98.2) (envelope-from ) id 1xFBaQ-00000000Qlj-3Qrl for pgsql-bugs@lists.postgresql.org; Fri, 09 Oct 2026 14:28:38 +0000 Received: from mail-qt1-x82d.google.com ([2607:f8b0:4864:20::82d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1xFBaO-00000001FJd-0FLx for pgsql-bugs@lists.postgresql.org; Fri, 09 Oct 2026 14:28:38 +0000 Received: by mail-qt1-x82d.google.com with SMTP id d75a77b69052e-5339173489eso49148991cf.3 for ; Fri, 09 Oct 2026 07:28:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dunslane-net.20251104.gappssmtp.com; s=20251104; t=1791556114; x=1792160914; darn=lists.postgresql.org; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:from:to:cc:subject:date:message-id:reply-to:content-type; bh=gG7jOXcF9vYSFO1DQrak3TRCT6wynit1gH4LFcvgxkQ=; b=Ix1iAONUGl11nqYayi3/40WyUh5X/JNJQLnNDgvOKX8zc+cPvJ8UOWdjIYNCEXE6xq 1NEjb2T5Tl8dt9IkhVU+dW2ipdLnph5aSBIUiqmtbWc5+k5Jp99hBOyP4EKjht0NEd0K wte9MbXicIzFwGuwN+ZVonmXb60kOJ/IONw/Ifj5lzwE3gus8oGwO5out7sWM3y3bPML qmJJ82u+NkgOVzabtQY1mdCGcdOJH1Bq1holEGN/3Ca4vn2qPRVRuDe4igsmRhOrgvLa f0mqxhC2Ib1MNLajmcrhQlHVnWZNO5krNkJ6n6cqxtgtCYi3y80deEkG5fULA2/3LASh maNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791556114; x=1792160914; h=content-transfer-encoding:content-type:in-reply-to:content-language :from:references:cc:to:subject:user-agent:mime-version:date :message-id:x-gm-gg:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=gG7jOXcF9vYSFO1DQrak3TRCT6wynit1gH4LFcvgxkQ=; b=tATlys8HnYj/UPs0KQ8BpTQTI8dSS/t5P1zUT3OOk1zOO1A4lGQLTDOSouW23NtJ6G dI0YB4R0hUvrZht9OAyRcEde6mgCjotXpo0D6VxyV9odX8WJZpL8tQlOUxxp+WTUDLgr ez06UHOaAWNxzDqKDRL0ekHBEh/vcfo1JS0W3nFSk0y1RRK7bueQ2GcPcCoNWFMI39jk 6k0uYfHpd1IbwndXng6nhXB5pMjqSUVL70jFfNGFXckE0OEvZ1zTX8H8axERD3F/4+4B gGZ0w1zMsmCIta6W2NbD//JyHAfOSCLtAcQ28dp3WxT+hGBQg1w14mGbmnXBTJEn7nkM n8jQ== X-Forwarded-Encrypted: i=1; AKwUvByXKKxkMcNQb2Hr7WErj9AlNlXo0qeTolA5Lg9CrGgzzDRlaGCjvlev2vwlxFfL1o+huSQ0edgi4BB7@lists.postgresql.org X-Gm-Message-State: AFuF++kjWW2+zNAxhfGmcVGKUl1aeBHfSHrkax7xtO1C2JhXTbjx7cd0 QhLlpGasC59ho651zQHt7vRyMosUnl6YejB3LIWQsGwiP0fRgJhnZWgO0Fi8MmGLvAQ= X-Gm-Gg: AYBFou3wDeg16X9A17iPvFnDZ6bZ5gtyymnbfaqH6a3UvhBZhd5lFzZE7QKFVqKsQLJ PnIkdBywflafdLlHZ6XgS3xeP+ASyWmypA8uZU76yIGcI9UOLgDkoecpTPxRUwXvMsWzc9Hmmpj 051q1IuTkYd2FWNxGITXiM+2TRip/yj7Vme0b+Xdc31LW++aaFepXfEnSz4gbXQmT1JNmRvA9hg xqinAi+UYCPymQ89qEHRX4rNaKoYAub8EK/Q0QiZf/OXekWiu9B11B/zgcyz9o7qmux3yc8mCNI gdm1/Tc2cvKAhOyCCtvFFuxq86FzIo8o8pEF8tcl9KPw3mg0M4jDG3Hq39zBB1NFKEVdetwxG3D U4T60nDHFQ8Jxm9pmVJ6Sds6MSqrZcPkSaaWxUUd0GAvrudl2ThoEWSJlcQNLDK1J40z0fRdkbC RJae0V+QOH0qKi+G5Y/gMvo3GlklyPlDUofBxjYQlK7pu/mDF3321tq9AKAqsJy2UhCX3l6zSrm XnRU54WKg== X-Received: by 2002:a05:622a:4d91:b0:534:d369:f398 with SMTP id d75a77b69052e-5359fb5a4bcmr28142331cf.41.1791556114329; Fri, 09 Oct 2026 07:28:34 -0700 (PDT) Received: from ?IPV6:2605:a601:a6a6:4300::303? ([2605:a601:a6a6:4300::303]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-91b55017538sm19435326d6.10.2026.10.09.07.28.33 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 09 Oct 2026 07:28:33 -0700 (PDT) Message-ID: Date: Fri, 9 Oct 2026 10:28:31 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: PG18: use-after-free in exec partition pruning after an EPQ recheck in LockRows To: David Rowley , Andrey Rachitskiy Cc: Vladimir Savin , pgsql-bugs@lists.postgresql.org References: From: Andrew Dunstan Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2026-10-08 Th 6:04 PM, David Rowley wrote: > On Thu, 8 Oct 2026 at 21:30, Andrey Rachitskiy wrote: >> Agreed. Skipping on es_epq_active was answering the wrong question. >> The invariant is that InitExecPartitionPruneContexts() must not run >> twice on a shared PartitionPruneState. >> Your initialized flag is the right fix. > Pushed. > per buildfarm, this is an ABI break on release 18, apparently needs an update to .abi-compliance-history cheers andrew -- Andrew Dunstan EDB: https://www.enterprisedb.com