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 1tx8Vb-003TBB-GC for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 17:56:15 +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 1tx8Va-007iLL-5D for pgsql-hackers@arkaria.postgresql.org; Tue, 25 Mar 2025 17:56:14 +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 1tx8VZ-007iLD-Ok for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 17:56:13 +0000 Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tx8VY-0015Rj-05 for pgsql-hackers@lists.postgresql.org; Tue, 25 Mar 2025 17:56:12 +0000 Received: by mail-lj1-x235.google.com with SMTP id 38308e7fff4ca-30762598511so65211241fa.0 for ; Tue, 25 Mar 2025 10:56:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1742925370; x=1743530170; darn=lists.postgresql.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=sVYxYhBssUlhWSs9QypP0/w9bmmAfdhkCNn5p9lmFbA=; b=h/kVjNNnUFjKcNw6lefvWFRrFFaew29KvL7kRAtUcxQqsxBQYT+C25rbbAWrmTLOaS JUSXjSjNsYNc9RTvcegnz9KmZuZp9Q6CxvH0XU5oNGUvQ/lItWXdM3mC4AArSdcG2awd p3GJuAxtc9vQpVm+rUNq4az9pEPUTPLFQOoLLCfiRjU6ixuE03z9VySmF8VQv3pbsecr wO2AVX7ovpnb7Qu8xJBQe7DNKHxrdb8PByF5C8vLXwnEEfXfkhbI+yiv3Co6Rh4QK4JK CeP0A/wb4oz+Nuj2VfzgTIWP0CddoqI+0hUF6IiIQVt/BPiui7uYg3nAMrILxSF8jD2Z c2ww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1742925370; x=1743530170; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=sVYxYhBssUlhWSs9QypP0/w9bmmAfdhkCNn5p9lmFbA=; b=eGzbwmYe61WtbQ92qsTW7AB1YBj2Azp5hVKpPqwyVZQaAOWb1HN3msvRDghD9Q2Jm3 1tCzBY9hwBC7Yc6NA+NENY5UnMWoaWgHKnUS4JXOFLCEDe3JagyISnYb7o1fvJqfia8c xBlJ04RhGQWsAWkdKy7vuOSHeb1CrylIkJBhIDseZ6JUUqpip0agxbihVsw0UvyL4CX9 +G+w4//7zPxNwKGTxOAJOYQIS41R4P/fcCzzSob1VMojvs3tdV7pyHisVJnzEonsYmHT r2wUNcw0iY+Q/1eq8sruPPFDDfR47BH6otBc++sD2xvdozC99m817jwM0tcczYi5/MPx Gszw== X-Forwarded-Encrypted: i=1; AJvYcCXtCuoLhklKa/8nvFpSIPm3L+xt8b6rPAkPQImXMFGFo4tCFNzrO6CfPvGIuNhkCdF4obi1+cCkjMKx3AHP@lists.postgresql.org X-Gm-Message-State: AOJu0YzXK5hrwsHJsGqkCPrR6S7BzfPBUvvLM5X8cXu0JT+bzeHhW6B3 c0Xsa+QTW5i7yeMiJjRbPPx3gNKUyydVOCZiySQpEiLDDkrULmoL4Rs+6zgH/kHIZNYH7MkVynN 1mbzeqBMG4tsulVOfy5o1ddzPU14= X-Gm-Gg: ASbGncu3ctpsqs9HawOIBoBbLpNDfuBILpF+TNLoD9ycvTE0LOSmv1VlnUQfihwSbVC iP+cbQmmQrSHhU6U29aXIxMcvT1aXhFjVtc/WNQtf4rEX62JeCFCdkUuIFhjeNelIdqGbBU1zg5 JoeW3EYNT39n7IHencKrzt2A5N X-Google-Smtp-Source: AGHT+IERKZQr9QrEPU8PzGxN3EafxTR/OC80NaBlRMFJbpZjz7Xl96xhBUkYZo+ieRus3E4KHvAzyj8anxDcmNs6ROs= X-Received: by 2002:a2e:9ec6:0:b0:30b:f2d6:8aab with SMTP id 38308e7fff4ca-30d7e31b7efmr61265051fa.32.1742925369987; Tue, 25 Mar 2025 10:56:09 -0700 (PDT) MIME-Version: 1.0 References: <1282250.1742921593@sss.pgh.pa.us> <202503251727.pn3eg43zqkdk@alvherre.pgsql> In-Reply-To: <202503251727.pn3eg43zqkdk@alvherre.pgsql> From: Sami Imseih Date: Tue, 25 Mar 2025 12:55:58 -0500 X-Gm-Features: AQ5f1JpNH9jbBKTgwr5kUmp8vbRIj61VLBPlQCaOQdkflxhioq7b-Qzy_3lO_QY Message-ID: Subject: Re: Squash constant lists in query jumbling by default To: =?UTF-8?Q?=C3=81lvaro_Herrera?= Cc: Tom Lane , Christoph Berg , pgsql-hackers@lists.postgresql.org, Michael Paquier , Julien Rouhaud , Dmitry Dolgov <9erthalion6@gmail.com> Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > > If this GUC sticks around, it should be at least PGC_SUSET (on > > the analogy of compute_query_id) to make it harder to break > > pg_stat_statements that way. > > I have no problem making it superuser-only, and I can see making "on" be > the default. I am not opposed to removing it completely either, if we > really think that the current behavior is no longer useful for anybody. I am in favor of complete removal. [1] will change the behavior of table jumbling without introducing a GUC, and I don't think we should introduce a GUC for the squash values case either. Why one behavior change is configurable while the other is not? seems confusing, IMO. Also, as a matter of principle, it seems most are favoring not introducing GUCs to configure queryId behavior. I agree. [1] https://www.postgresql.org/message-id/flat/CAA5RZ0uNofEXfEfNw3uRN3D3oXkFPQ_s%2BhuLLHMKR_%2BMCk8RPQ%40mail.gmail.com#c357c56c3924642e8ef73cc1c8a0286e -- Sami Imseih Amazon Web Services (AWS)