Re: Does Postgres have consistent identifiers (plan hash value) for explain plans?

2023-12-04 Thread Tom Lane
Michael Paquier writes: > On Mon, Dec 04, 2023 at 09:57:24AM -0500, Tom Lane wrote: >> 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 e

Re: Does Postgres have consistent identifiers (plan hash value) for explain plans?

2023-12-04 Thread Michael Paquier
On Mon, Dec 04, 2023 at 09:57:24AM -0500, Tom Lane wrote: > 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 Po

Re: Does Postgres have consistent identifiers (plan hash value) for explain plans?

2023-12-04 Thread Julien Rouhaud
Hi, On Mon, Dec 04, 2023 at 06:45:39AM -0800, Jerry Brenner wrote: > We are currently on Postgres 13.9 (and will be moving to later releases). > We are capturing json explain plans and storing them in a database table. > We can tell that there are different plans for some queries, but that's a > v

Re: Does Postgres have consistent identifiers (plan hash value) for explain plans?

2023-12-04 Thread Tom Lane
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

Does Postgres have consistent identifiers (plan hash value) for explain plans?

2023-12-04 Thread Jerry Brenner
We are currently on Postgres 13.9 (and will be moving to later releases). We are capturing json explain plans and storing them in a database table. We can tell that there are different plans for some queries, but that's a very labor intensive process - we'd rather do this using SQL and comparing co