Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6WwW-0002qH-MN for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jan 2022 12:05:00 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1n6WwV-0001DJ-9h for pgsql-hackers@arkaria.postgresql.org; Sun, 09 Jan 2022 12:04:59 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1n6WwU-0001D3-VC for pgsql-hackers@lists.postgresql.org; Sun, 09 Jan 2022 12:04:59 +0000 Received: from mail-pj1-x1036.google.com ([2607:f8b0:4864:20::1036]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1n6WwR-0001f8-C2 for pgsql-hackers@lists.postgresql.org; Sun, 09 Jan 2022 12:04:57 +0000 Received: by mail-pj1-x1036.google.com with SMTP id pj2so9790079pjb.2 for ; Sun, 09 Jan 2022 04:04:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=J6QTdMlP6NZxbYmraoe5zJTl1Cb7m6zh6Hb0IOKv0F8=; b=Wdd5URxMEJEOHrG8lmRrMYJi63j5ImbHsU6w7sEBIEhz+vNcl8ULTne0UIzuXYe4rX ZOHizrMdy4z7lbDHe8S6X3NN+qYUKuKb5sP6RrKVSJ/Moy0Rv4q8R1bR+LFqwfPJOd57 ZrDyE9b5vZiN7W39rYsfGjAlBXHKRmBLt15OtsMsXzDxX68IbgoaNVY4Ti7z7wQm95gx 0JihhBkjQ1lZ85II91tRuOSvElIzx4ekutaaW1XitdZwOBejJMpoRLoFFTE3iQRs/HUx 4pOITOjTHJrePf6UFgO/MEJavT6qAfMtpdqag1zcAUa3uOamMQjicoEsmXZqm8tvTpHI boyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=J6QTdMlP6NZxbYmraoe5zJTl1Cb7m6zh6Hb0IOKv0F8=; b=G84/pQsu4Epj7B48LM0z9n3uY5xj3uUHSS0KQ2AnHVNYO4VQf2XlEVjn5fJ2SW1d/D v2y8T3LgqlkE1j/rDjRlsCJmc/V5OGvqPhakrqvcTOha1Ny49YcSQdLzW83NceA11DeO C/2lPdSMHiktdIGqp//NuEmBR/fyEMmcU+vcGcKKHW9ktK6PIkH+3cuQYc/qfMlhfbOU sFef5pF0JWybye6JSmR+TyZr+QHKoTckDv5fPgj3iWKHe1yIMGwS8SubsnYTIbMDRSeQ tg11o7ZFSPJo2QzLyas9dJgBvONXT/3UDtcIoSBNJcRvqrHO8T6o6avwUP2Vk/QXg/+/ PjuQ== X-Gm-Message-State: AOAM530YIwV+9qYW7M5+jdo7ORM8W9pb2NqqITx/xe0JwymF8CWaGWL7 w6nMiopohH/4mzHLLbY7aIA= X-Google-Smtp-Source: ABdhPJxyf2J3Jv19Bgk911PkMO67k5lsYMXaO7gr6Z4Pn+eGcboCjaJLTRNM4anY5ABnZx8TBlXghA== X-Received: by 2002:a17:902:7ed0:b0:149:663a:13d5 with SMTP id p16-20020a1709027ed000b00149663a13d5mr66128355plb.102.1641729893910; Sun, 09 Jan 2022 04:04:53 -0800 (PST) Received: from jrouhaud (1-171-187-20.dynamic-ip.hinet.net. [1.171.187.20]) by smtp.gmail.com with ESMTPSA id nv2sm6477525pjb.12.2022.01.09.04.04.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 09 Jan 2022 04:04:52 -0800 (PST) Date: Sun, 9 Jan 2022 20:04:44 +0800 From: Julien Rouhaud To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: Tom Lane , Andrey Lepikhov , PostgreSQL Hackers Subject: Re: Multiple Query IDs for a rewritten parse tree Message-ID: <20220109120444.gxtnavdswou2g3wa@jrouhaud> References: <1606733.1641689399@sss.pgh.pa.us> <20220109114306.wwr5znquhhrqqvoc@erthalion.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220109114306.wwr5znquhhrqqvoc@erthalion.local> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sun, Jan 09, 2022 at 12:43:06PM +0100, Dmitry Dolgov wrote: > > An extension that wants a slightly modified version of hash calculation > implementation from the core would still need to copy everything. The > core probably has to provide more than one (hash, method) pair to cover > some basic needs. Or just GUC(s) to adapt the behavior. But in any case there isn't much that can be done that won't result in a huge performance drop (like e.g. the wanted stability over logical replication or backup/restore).