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.94.2) (envelope-from ) id 1tlO4K-00BZwS-GZ for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Feb 2025 08:07:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1tlO4J-004fnY-1O for pgsql-hackers@arkaria.postgresql.org; Fri, 21 Feb 2025 08:07:31 +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.94.2) (envelope-from ) id 1tlO4I-004fnP-LU for pgsql-hackers@lists.postgresql.org; Fri, 21 Feb 2025 08:07:30 +0000 Received: from mail-pj1-x1032.google.com ([2607:f8b0:4864:20::1032]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tlO4G-00276L-15 for pgsql-hackers@postgresql.org; Fri, 21 Feb 2025 08:07:30 +0000 Received: by mail-pj1-x1032.google.com with SMTP id 98e67ed59e1d1-2fc32756139so2906096a91.1 for ; Fri, 21 Feb 2025 00:07:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740125245; x=1740730045; darn=postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QixbTlhRryC9FmWSdMWKzaGK37lnANogXUSc5BqxD8g=; b=RsC7B1b5UMwiEpiQSFZdd8Pp0sFuXmXCj4mkAHzdLNp9YZS+1Uo0/nFp4OtYxvWnps nfGZVvdnqx+n0fWb6Uund28pblSaxSZQmK5LyeyVpFtH7Pm9oLMsxoB7Pza2jHMn5i/Z 7cwWgl0yBOPBIgE1ibXjaH0c/5CDqJaJ6XCCvymGEOJyPOq8NfYLaYfGzzNxSy0LH1WR WeZMidaEGwVEEANHixspADV0Q8K5bUBdWf47ursD9jNQy23CXfmjk94hKuSoSOrhcp0j RTWS4fh3ki893lGsYvCvcouQ+XbQ5sHNkFxNieEMVy/LDNYjajGolzm26IHLCnSpM5yJ OS1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740125245; x=1740730045; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QixbTlhRryC9FmWSdMWKzaGK37lnANogXUSc5BqxD8g=; b=qyoqJ7gYXzAzPcsuR2ynX6jw7kkw2V2LsVPQy3o6PVzLXOKY/9i6+RBP/tmJRsBO2J r9ufw2xNToPI9PjfN3M5EWzXhUfvs3XjNAXNiPgSYDQDfwQE8dOCOa6uM85ByhdIGnI5 jHl5VYzeHMQwph5q2aj4wdKw0FQc8OK6mMHh63RH4I+p1uRPVnoiQ4RITRyuh0liiDCU Ss4FKz3FCyP/k1RJRjaCMhrq0c/jM6oHuUzXic5JpqxmGG0DF/cTBtfcqipUYASbQopZ QWxD5B0j34HA/5CX/o8S+4HUBjOYdn+eikY3yUUIuOvY+jnK5H+HW+Gzf1guvFBXtE2l 3AEA== X-Forwarded-Encrypted: i=1; AJvYcCUgOgFG73q+j6/ajZejPeUqw2EQFrhcPKXWX8blGYwxQHxUwGEJsytH0bkOoCiTYouK2Z9B5r/R5+Xd0ICY@postgresql.org X-Gm-Message-State: AOJu0YzoCVI2f3QxxuEOH/nF3SMlQyvW62z9zzRPjr9i2hyaIkHSzZOB y33jopwFJbDd92MhyKciKCZlmru3KHsudKuPr1hEYm+75oP9pSjtSyaknKir+O738XBnOmAA2xA X29SqVo7+jJ07AmnsqS78pbvZK3E= X-Gm-Gg: ASbGnctu41TncEc0VeJDm8nrfZ9lMWe3PPhMIIq/swdnMsI3rZPxangGbpMcAk1mydu ukIPNuw/Ut5vThQ8i6zNzRjrRMsRerFa0BNN9nWk+JKokuPB134d2XsaUYSzKavhwaPeyIOVUs7 MVA0Kk0+v5 X-Google-Smtp-Source: AGHT+IHhzF8a95N/jSh6a/SalR9UVAwO+eiI4ZBt46D8anTyR+fp0wr0h+gc4gnFsk3UEvyVeBsfl9ZRPKy3mUyWE+Q= X-Received: by 2002:a17:90b:4d0d:b0:2ee:8430:b831 with SMTP id 98e67ed59e1d1-2fce868c84cmr3389115a91.2.1740125245579; Fri, 21 Feb 2025 00:07:25 -0800 (PST) MIME-Version: 1.0 References: <54c35fb9-da3a-4754-ab8c-46ed0b612465@vondra.me> <684c70d7-180e-461d-9377-600c2db581ba@vondra.me> <2990641.1740117879@sss.pgh.pa.us> In-Reply-To: From: Amit Langote Date: Fri, 21 Feb 2025 17:07:09 +0900 X-Gm-Features: AWEUYZm78Ji6wKO-wC4TKrgE4o44Dqsp8-WnRTYp7IIw--2FLBaW3NKwoaBDX-o Message-ID: Subject: Re: generic plans and "initial" pruning To: Tom Lane Cc: Tomas Vondra , Robert Haas , Alvaro Herrera , Andres Freund , Daniel Gustafsson , David Rowley , PostgreSQL Hackers , Thom Brown Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Fri, Feb 21, 2025 at 3:36=E2=80=AFPM Amit Langote wrote: > On Fri, Feb 21, 2025 at 3:04=E2=80=AFPM Tom Lane wrot= e: > > > > Amit Langote writes: > > > I pushed the final piece yesterday. > > > > trilobite reports that this fails under -DCLOBBER_CACHE_ALWAYS: > > > > https://buildfarm.postgresql.org/cgi-bin/show_log.pl?nm=3Dtrilobite&dt= =3D2025-02-20%2019%3A37%3A12 > > Looking, thanks for the heads up. The short of it is that the cached-plan-inval test in the delay_execution suite can never be made to work under CLOBBER_CACHE_ALWAYS. The test assumes that locks on partitions for a reused generic plan are not taken until InitPlan(). However, under CLOBBER_CACHE_ALWAYS, generic plans are never reused, so the test's assumption never holds. I see two possible ways to address this: 1. Find a way to disable the cached-plan-inval test in CLOBBER_CACHE_ALWAYS builds. However, I haven't found any other test that does this. 2. Remove the test altogether, though that might be too drastic. Thoughts? -- Thanks, Amit Langote