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 1wFbRC-005LlY-30 for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 17:32:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1wFbRC-00Ebmw-0X for pgsql-hackers@arkaria.postgresql.org; Wed, 22 Apr 2026 17:32:34 +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 1wFbRB-00Ebmn-2q for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 17:32:33 +0000 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1wFbR9-00000002VY5-2Yqc for pgsql-hackers@lists.postgresql.org; Wed, 22 Apr 2026 17:32:33 +0000 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-488ba840146so52547035e9.1 for ; Wed, 22 Apr 2026 10:32:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1776879149; x=1777483949; darn=lists.postgresql.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=8gs1W3n2iaERU0asNbUstsGJn9/p2FIdqYrF99kf6es=; b=cN1iV0+jxyQI5YixnokcHAV5Gfkk/XPqo3ZWw8R0IPEEonwPtvLUIXijUlTaQcC5d8 Q2CPtw3H0De4Y6THwFR8Bjhtri/blDKvalO9yNn86BbPx3+7ibe21rPlSeE3ZQT++NVI eP8Y5hUd1w18qjg7AxkhULvs4idIrtuCWPuh0FjAkIaUizV+e0yA+y3E5tdRFR0tZl4Z HAwEfFvB+M3TZ6L3IVOjGE420tKDGlXdVi5GxyRCp889PLpI/GckVzXObmWu3tsrMV32 fhlQJlFbJtcn+OK/gGfZxs9P7C4HzkRTCTh69/Bquw6mxMdi8eKDFlnE/KVwM09SgZfx ++8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776879149; x=1777483949; h=in-reply-to:content-transfer-encoding:content-disposition :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; bh=8gs1W3n2iaERU0asNbUstsGJn9/p2FIdqYrF99kf6es=; b=rzhF9XxZks/hwdj/nW1L2pTYksYNcAMvo6sS2i6psdusoAVQhbaRpZY0c+94SxPpjo vcaqR3AevNlqqiJRvxX5BEu/s6B7+lGYt9T6FjEX41u3AMnplJKYbjZJT3UzCZSJZMKU WHopwicRsKiQ7670FfIcavhsfeipcm6poDPK7466kv4UmCMxo9SMuwUYCSCy6Ybe4s6h AUxft+1zdna063ZS5r/kUkXofjehEFntsTXK7mTMYdFzsPhc6ftKBGjKnVx7NyLcFbKD lKfkePMgWRz6tr3u/ISrifeAa1vIlsC4kbUy3oh+nt5ujPuHEXHUfzFpje5QK9h+jeuX KUFQ== X-Forwarded-Encrypted: i=1; AFNElJ98cwlj0NihyewACDg0Eo0n/06yaw5lho0NL6QtOTmepbOE9P1yXH07ZHEvw38i7CGTgF27Pgqlzaj5am5V@lists.postgresql.org X-Gm-Message-State: AOJu0YxefXFckvC7Fd7gh0r6kTTEmhPbjrbQMiRG21n1YtpSG/95lvrr 2Qu3mqSIdVdy5EVGzo2h4vS4Qsw9zOHf8d7k0DqEDapNkla3/X9KoseQhNlIyQ== X-Gm-Gg: AeBDieuMjWAgOszDemDGiWrbtX/gZfa6xRZY5EPHtgDrDlVeoIGvx2r1jar/yJth1d/ LC6zxyjGObWDoLnuR4STS3BtARCYoJPTUCncl3GMJIPGwzfuOAc7HqeOho2XWBKKrhfqWh4dQNz LPQtlGAs+MEgGYaHPQPF0uHUV613PXPn7gUnn4abGQ26er0q4vv9l6B/Yd+Ep5nGYY5crjajBz2 VccNwy8UZTh28cQNd93Ahwub9Wu2Tl6OtEbc5SVQYaR963cucpR2ubyuz8PluGhRO4TX76CuYG1 8LyHlfNtR8YJbLoZMnxnjcDecKDk5d2MqSChxxM1wFfDDt92VYTNeZ1e+8RuMXNOEiREh3gBNdn zCCOyycsCag9zdDmB0PtqdOoPILomN+cqB1c3HM2dfd8GsSCKIufsztZaLZ3X9YGuerKgc1RWO2 bx3nviFe3XerDWGblPhJCnGYW87EVXqiyzHwGwIY+gz1/qEU1HpTv72vQXexEIstpAhKImnJ215 4iJiL1w/Bi6t9ikLptQ/05fBfRFottd X-Received: by 2002:a05:600c:8115:b0:488:904b:f31 with SMTP id 5b1f17b1804b1-488fb77e27cmr291909515e9.22.1776879149288; Wed, 22 Apr 2026 10:32:29 -0700 (PDT) Received: from bdtpg (ec2-15-237-197-144.eu-west-3.compute.amazonaws.com. [15.237.197.144]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48919f54572sm106210445e9.26.2026.04.22.10.32.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Apr 2026 10:32:28 -0700 (PDT) Date: Wed, 22 Apr 2026 17:32:27 +0000 From: Bertrand Drouvot To: Chao Li Cc: Kirill Reshke , PostgreSQL Hackers Subject: Re: Cleanup explain_memoize function after test 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 Hi, On Wed, Apr 22, 2026 at 05:24:33PM +0800, Chao Li wrote: > > > > On Apr 22, 2026, at 14:49, Kirill Reshke wrote: > > > > Hi! > > > > I was doing some hacking today, when I noticed that the memoize > > regression test does not clean up the explain_memoize function after > > its end. I checked other regression tests and they tend to do it. So, > > I am not sure if there is a rule about `you should drop all objects > > that you create in regression test`, but if there is such a rule, PFA. > > > > > > > > -- > > Best regards, > > Kirill Reshke > > > > Good catch. > > You also need to update the corresponding out file, otherwise the test will fail. I have helped update the out file in v2, now “make check” passes with v2 applied. I'm not sure fixing "only" this single missing clean up makes sense. I think, that the main purpose of those would be to be able to run "make installcheck EXTRA_REGRESS_OPTS="--use-existing"" multiple times on the same running instance without any errors. If that's the case, then from what I can see after a quick test, the task would be way larger that this patch. Regards, -- Bertrand Drouvot PostgreSQL Contributors Team RDS Open Source Databases Amazon Web Services: https://aws.amazon.com