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 1silMc-00941W-PR for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2024 01:51:18 +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 1silMa-000FMF-Ok for pgsql-general@arkaria.postgresql.org; Tue, 27 Aug 2024 01:51:17 +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 1silMa-000FM6-Do for pgsql-general@lists.postgresql.org; Tue, 27 Aug 2024 01:51:16 +0000 Received: from mail-lf1-x12d.google.com ([2a00:1450:4864:20::12d]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1silMT-001gEs-NL for pgsql-general@lists.postgresql.org; Tue, 27 Aug 2024 01:51:16 +0000 Received: by mail-lf1-x12d.google.com with SMTP id 2adb3069b0e04-533488ffaddso6027780e87.1 for ; Mon, 26 Aug 2024 18:51:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1724723470; x=1725328270; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=OY+B7rzKDMVGn7xr2C/3hg5vHfWmJUuuS6DfZP+Y6FI=; b=m0a/HVC48UxThhvDYKfhEHCqE6hCL7DEgWO1KVFgP0wkodguViBpPB5IroS6vyfmF2 h1m1kLLUaPbusQgFnZM5HeBbBFMdy4ftdvC7A3+rDq/GUfailgQMQe3bJQKiHS3xSSDu 4/yaM1bK8OUEq3eSLcooYvBgzu5f5MBcK8qJeApGil/FWVaeHxMhhO3DCNU/W/rNzDPV mh2Vukj66vCrgx1ndg1R3IIF6LaH0w6j7nrALWmzv2pUtKIGPqw9WyQxhU03hWA7WMY8 8Tazp9WMqsAIq5XQPnhdczxVmOyxkXfwsDmblICehRxAAQcJyYgRLJXPtEUGGonnQ6a9 /NBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724723470; x=1725328270; h=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=OY+B7rzKDMVGn7xr2C/3hg5vHfWmJUuuS6DfZP+Y6FI=; b=w3qfgh5IqXm/1K+bWBzlccPRhfNcaC5PyTld9VhSdrnwqLy8reU/OM6/nDcZGN4DYg k3UssaNQx9iJ7Hai80N4Ng9j0+t2AeZRS3fprTX/AJUVK8U82trPhNl4H4mWJCAv1Oma qDypf8wCzbqO+A97xcL02uEBE3LfLztQlpQ0ubhmKncP4FS+gKZFnpkRPwqATEy6vi1U ZH1XhKp8d3E2BDSeaVE56S6xt/jXDw3WV1JgzBCzOBvZHz+Wg3fXbvf3cBp7fcBZumaH oUyZfNRH1r5xc9KpDpaN+DRbNad9Y+H07AJKLOvymisDz4yELwPIApTp33/0lX1540uX KS8w== X-Forwarded-Encrypted: i=1; AJvYcCWbU7EIMDDfA3fwQv/iqFm32HNpsQtFmY0KxmRKjkRb/ZTThcKQlChIOQpEbhH4cDVByUZpfXDKeHlepSxJ@lists.postgresql.org X-Gm-Message-State: AOJu0YxKtFy36/lvxe0NmRALSgMGebJfVWpngPydNCB6GTxsfW8ELRaL 0kXPUD+gY6RLpOmPUOel1hKoIjHIr2vOJLKPu9HepE2IHr/JoLXyMQiDYt5wgtNvgXEELf69Uw+ i6n6Yl5SxKNYtFMKGrjSlp4mWRGA= X-Google-Smtp-Source: AGHT+IHVcfBQSDgOpnMrgTCJOW2ppTivuSPEBvSVfL/N0rIp1erW4CLs/xB9R7bqTxhuCOT0eySD6e+1tXoj6kOlTo0= X-Received: by 2002:a05:6512:401d:b0:52c:a7c8:ec43 with SMTP id 2adb3069b0e04-5343870bbf8mr8454455e87.0.1724723469335; Mon, 26 Aug 2024 18:51:09 -0700 (PDT) MIME-Version: 1.0 References: <2962669.1724722813@sss.pgh.pa.us> In-Reply-To: <2962669.1724722813@sss.pgh.pa.us> From: David Rowley Date: Tue, 27 Aug 2024 13:50:56 +1200 Message-ID: Subject: Re: Significant Execution Time Difference Between PG13.14 and PG16.4 for Query on information_schema Tables. To: Tom Lane Cc: nikhil raj , "pgsql-generallists.postgresql.org" , NIKITA PATEL , Patel Khushbu Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, 27 Aug 2024 at 13:40, Tom Lane wrote: > Yeah, it looks like that condition on "table_name" is not getting > pushed down to the scan level anymore. I'm not sure why not, > but will look closer tomorrow. I was looking for the offending commit as at first I thought it might be related to Memoize. It does not seem to be. I get the following up until 2489d76c, and from then on, it's a subquery filter. -> Index Scan using pg_class_relname_nsp_index on pg_class r_2 (cost=0.27..8.30 rows=1 width=8) (actual time=0.004..0.004 rows=0 loops=1) Index Cond: (relname = 't_c56ng1_repository'::name) Filter: ((relkind = ANY ('{r,p}'::"char"[])) AND pg_has_role(relowner, 'USAGE'::text)) So looks like it was the "Make Vars be outer-join-aware." commit that changed this. David