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 1ti1R7-00A9oc-HN for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2025 01:21:09 +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 1ti1R5-002Vap-Bg for pgsql-hackers@arkaria.postgresql.org; Wed, 12 Feb 2025 01:21:08 +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 1ti1R5-002Vag-1y for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2025 01:21:07 +0000 Received: from mail-pj1-x102c.google.com ([2607:f8b0:4864:20::102c]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ti1R1-000M7L-0C for pgsql-hackers@lists.postgresql.org; Wed, 12 Feb 2025 01:21:07 +0000 Received: by mail-pj1-x102c.google.com with SMTP id 98e67ed59e1d1-2fa40c0bab2so7384275a91.0 for ; Tue, 11 Feb 2025 17:21:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739323261; x=1739928061; darn=lists.postgresql.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=LStwFuCmU8K+RithjEuWfLGgt1uDNOW0VKmyxkVsXHQ=; b=ap37S0tzUqxvmmfc/a0RnRHOg6fHNJXJ0R/of+7BIEnVWa+VtZyiW1QqGcitUd+kIs lFE3DUP2F5dvFtLwpc2JJn5DaYNtRrmAGGtmWtzlAxCqh5kL8hgRI4GYDcmitM/7PZ7l ayT/daQx1wj9LKLxdtcYWA8B9cHUF3gk30bil9nAojQ8ScloMdW8jJ/hgfWw56vkFRb5 gJ3G+cEgzcwsZSoF/vhJAL9+fbsBdyzN0ieLR37OOMWrJfO0WUlaPW2JxvOQB52uhN5Y pf84LqXK1yfo9Saaq6rcrQfTxQYN+xY/SdtMPjb0LfkM7JyaWcjmpxICcB0Wcmwb1Jjz MZfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739323261; x=1739928061; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LStwFuCmU8K+RithjEuWfLGgt1uDNOW0VKmyxkVsXHQ=; b=hsIsi24I3NsWrx2TmvqLzR3uuQISXEbMgZqt5hUoHbIhLxSPcF0fUdj/i+jH2PsZV5 jhVeRQrGiBEIc2GA2FFhXPDn3E3bzl7sLYknwxTB5xQWad+0/o0AfCV5NNucjLkSUb+c CmcDpBh3JltqBioQw/RjmSA2OoZqb917PR0b0nHsJIwL4t08it5k2ZzfhKoY2iaaJIiY TI9QuMWj5gGTncWzbiYmWZZbF/FRxAUuUtC7jesdc4ehK35Fg2fbisrAj4pkbgEghZt4 ye4KcTlOFtvn3FHwMfTtgCBiVRETKyvnNCqu/dcrEHWujEMikGXggZcPDsbDBUU+zs9m /EcA== X-Forwarded-Encrypted: i=1; AJvYcCURxaVcYmsTV7ETq8eXX4mJApDl041jicaoRX9TxH8l8NS7xznfYZKsjGECcAZE2EeGv5UwVP9LUgAgjFoG@lists.postgresql.org X-Gm-Message-State: AOJu0YwlT3jUwcaA70H9D/cwisSEb5L77s7ylNk/ZXyAFQGfXcop/Lax pxcnpRkSitXm6H74J4R2RUP2gbLeTgv+pWc1BZ20T+vjyJLEp9fW X-Gm-Gg: ASbGncuBW4RQqX5Pv1y5av+XmUIT1ytihoFw4P89Fsr9wtr5KUDHevQLwnhmOD6eQSs hpK6xss8fJ+6Fc2QylGrhvk/Qku+Cb6f+40bxFH9AOePhGcBq8upOtTtmTqQWTXVDuz2sIjM7q1 PLAQaR7QPxbAKRKzs2ESUOTzXKX2iUpDiWMLP+Lm8XuU65KTPMtf8eYzzzfZVhYWSpZW8VH2BAt fds2INCBIv7yPfsQiv+Kz6sj5rz5jBV2vyIIlLc5auDmuZYqi5GRtQ/Glse612WAGo9k67/poHw hx/6bJA= X-Google-Smtp-Source: AGHT+IGmLV8+tJP0cy4lSF1pBs0HVuEnLK/PXVSaPznaUq5XYP2ajRfQN1TmwbylJd3SqFFSyWjXlg== X-Received: by 2002:a17:90b:2dc6:b0:2ee:d024:e4fc with SMTP id 98e67ed59e1d1-2fbf5c72d38mr2332805a91.33.1739323260816; Tue, 11 Feb 2025 17:21:00 -0800 (PST) Received: from jrouhaud ([115.43.41.38]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2fbf98b3277sm204557a91.7.2025.02.11.17.20.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Feb 2025 17:20:59 -0800 (PST) Date: Wed, 12 Feb 2025 09:20:53 +0800 From: Julien Rouhaud To: Michael Paquier Cc: Sami Imseih , Lukas Fittl , PostgreSQL Hackers , Marko M , Alvaro Herrera Subject: Re: [PATCH] Optionally record Plan IDs to track plan changes for a query Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Feb 12, 2025 at 09:08:00AM +0900, Michael Paquier wrote: > Wikipedia seems to agree with you that "fingerprint" would fit for > this purpose, though: > https://en.wikipedia.org/wiki/Fingerprint_(computing) > > Has anybody any comments about that? That would be a large renaming, > but in the long term is makes sense if we want to apply that to more > than just parse nodes and query strings. If you do that, it impacts > the file names and the properties, that are hidden in the backend for > most of it, except the entry API and JumbleState. This last part > impacts some extensions and I have been maintaining one a bit > (pg_hint_plan). I agree that fingerprint is a good improvement. > > Also adding Julien in CC, > as he has some out-of-core extension code that depends on the jumbling > structures if I recall correctly. I do have an extension to support custom fingerprinting logic, but the introduction of the pg_node_attr based jumbling kind of broke it. FTR my main motivation was to be able to deal with queries referencing temporary relations, as if your application creates a lot of those it basically means that you cannot use pg_stat_statements anymore.