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 1rAAO2-0056go-Ly for pgsql-performance@arkaria.postgresql.org; Mon, 04 Dec 2023 14:57:30 +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 1rAAO1-00HOM9-7G for pgsql-performance@arkaria.postgresql.org; Mon, 04 Dec 2023 14:57:29 +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.94.2) (envelope-from ) id 1rAAO0-00HOLl-UK for pgsql-performance@lists.postgresql.org; Mon, 04 Dec 2023 14:57:28 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1rAANy-008lSE-KL for pgsql-performance@lists.postgresql.org; Mon, 04 Dec 2023 14:57:27 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 3B4EvONX756533; Mon, 4 Dec 2023 09:57:24 -0500 From: Tom Lane To: Jerry Brenner cc: pgsql-performance@lists.postgresql.org Subject: Re: Does Postgres have consistent identifiers (plan hash value) for explain plans? In-reply-to: References: Comments: In-reply-to Jerry Brenner message dated "Mon, 04 Dec 2023 06:45:39 -0800" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <756531.1701701844.1@sss.pgh.pa.us> Date: Mon, 04 Dec 2023 09:57:24 -0500 Message-ID: <756532.1701701844@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Jerry Brenner writes: > Both Oracle and SQL Server have > consistent hash values for query plans and that makes it easy to identify > when there are multiple plans for the same query. Does that concept exist > in later releases of Postgres (and is the value stored in the json explain > plan)? No, there's no support currently for obtaining a hash value that's associated with a plan rather than an input query tree. regards, tom lane