pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomas Vondra <tomas.vondra@enterprisedb.com>
To: Wen Yi <wen-yi@qq.com>
To: pgsql-general <pgsql-general@lists.postgresql.org>
Subject: Re: [Beginner Question]What is query jumbling?
Date: Mon, 17 Jul 2023 12:59:55 +0200
Message-ID: <120a2618-86c7-e734-8eba-73b82b8aa6e9@enterprisedb.com> (raw)
In-Reply-To: <tencent_5A9A66403EC4A9B9FD4A57BAD8D415AD020A@qq.com>
References: <tencent_5A9A66403EC4A9B9FD4A57BAD8D415AD020A@qq.com>



On 7/17/23 05:23, Wen Yi wrote:
> Hi community,
> I am reading the 'Generate code for query jumbling through
> gen_node_support.pl'
> (https://www.postgresql.org/message-id/E1pMk51-000puf-55%40gemulon.postgresql.org) to understand the principle of the postgres's node, but I really don't know the meaning of the word 'query jumbling'.
> 
> Can someone provide me some advice?
> Thanks in advance!
> 

Stuff like this is usually explained somewhere in the code base, so "git
grep" is your friend. In this case it's probably good to read the
comment in src/backend/nodes/queryjumblefuncs.c which says:

 * Normalization is implemented by fingerprinting queries, selectively
 * serializing those fields of each query tree's nodes that are judged
 * to be essential to the query. This is referred to as a query jumble.

So "jumbling" is a process to generate a "normalized" query.


regards

-- 
Tomas Vondra
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company





view thread (2+ messages)

Message-ID: <120a2618-86c7-e734-8eba-73b82b8aa6e9@enterprisedb.com>
Permalink:  ../120a2618-86c7-e734-8eba-73b82b8aa6e9@enterprisedb.com/
Also on:    postgresql.org/message-id/120a2618-86c7-e734-8eba-73b82b8aa6e9@enterprisedb.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: tomas.vondra@enterprisedb.com, wen-yi@qq.com
  Subject: Re: [Beginner Question]What is query jumbling?
  In-Reply-To: <120a2618-86c7-e734-8eba-73b82b8aa6e9@enterprisedb.com>
  References: <tencent_5A9A66403EC4A9B9FD4A57BAD8D415AD020A@qq.com> <120a2618-86c7-e734-8eba-73b82b8aa6e9@enterprisedb.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox