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 1qrLAU-003m6d-4B for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Oct 2023 16:37:41 +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 1qrLAR-002IBA-Aj for pgsql-hackers@arkaria.postgresql.org; Fri, 13 Oct 2023 16:37:40 +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 1qrLAQ-002IAB-Vs for pgsql-hackers@lists.postgresql.org; Fri, 13 Oct 2023 16:37:39 +0000 Received: from mail-io1-xd30.google.com ([2607:f8b0:4864:20::d30]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1qrLAM-000NF7-O7 for pgsql-hackers@postgresql.org; Fri, 13 Oct 2023 16:37:38 +0000 Received: by mail-io1-xd30.google.com with SMTP id ca18e2360f4ac-79fa425855cso89449939f.2 for ; Fri, 13 Oct 2023 09:37:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697215054; x=1697819854; darn=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=+6u92s+/7bW6hDYbjg/tk+PRDW8r68PAUoyIktE7yGU=; b=f7ThMNqw4tUDPGHn5CnC3eBjbq7rJ/ksXVpOQTrfzN/kznRj19xgHZIEaEQ7bpl0Zc eV76ek/j9NtK3zsxUsg0mHMWjp9aEXneUtErpQXsUbjwRPhzaq4eraw0u6DhlvHO9fXC jxjqzHabivTdoXTni+kZnaz+SWVJNYlqOymtzOBK9f6hhxQGO1f2yX2zKtM5Xms0EEWM 20JAEq1SRmvwY2MgDhrgmgv+XoG7GcY/enPcBegGvHaauJrS4ScM9q8elyhfr7S+VyhX kfkfVT+2CK/nXm0ZtlGw6ollVcnA5N+QJtwHPP1fMNdSN94KA6cGrtV9NwZrFaTSBZfP +NGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697215054; x=1697819854; 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=+6u92s+/7bW6hDYbjg/tk+PRDW8r68PAUoyIktE7yGU=; b=izsk/Jk5kfSu01FDqvYODJwMU6TBKS5/HpqdKm3Pk2aUqpluENmp/L+3AiagZhzru2 yEw0WYAULkYNtHUr543FsWB7pC9KpidcmkUMVAK4fGOPePHuCq7dk0H3kzOYuHmkzQYw AW/775+/AkPPoCGuS98W8W87/zNNpzwgK7z/2pofl0HM2qtUY+/0FqjJnGCz0LFXFJzv itRO/bQ/aeAAfqqT5VpLapFmL5FvJD4Fpjkgz4553X8lNkUtDpPhcJogUasyXb1By4+f BW9PuImVAwtcQNYS86CW3+7HDPMTEGT3J1rbkZV+NpbYeDh4FaWxPWXDdLo8ChfWXWLG IG8g== X-Gm-Message-State: AOJu0YwNVTb2bKsmFXmR7bFiPMO+qFXlZa39M6HbVyUDJsSnqcs1zl7k yHIgszALHFElIRJZdcF8wos= X-Google-Smtp-Source: AGHT+IEGha5GOz8RzwdkOgKlcf7X8+V0Ph3a4LYEwV5BBiJD3APUBf1qyGTLlgN1ugOknzd1xK7ieg== X-Received: by 2002:a6b:e31a:0:b0:791:acd7:233f with SMTP id u26-20020a6be31a000000b00791acd7233fmr24880873ioc.15.1697215053680; Fri, 13 Oct 2023 09:37:33 -0700 (PDT) Received: from nathanxps13 (162-195-168-172.lightspeed.stlsmo.sbcglobal.net. [162.195.168.172]) by smtp.gmail.com with ESMTPSA id x15-20020a056638034f00b004302370a169sm4552914jap.157.2023.10.13.09.37.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Oct 2023 09:37:32 -0700 (PDT) Date: Fri, 13 Oct 2023 11:37:30 -0500 From: Nathan Bossart To: Dmitry Dolgov <9erthalion6@gmail.com> Cc: "Gregory Stark (as CFM)" , David Geier , Sergei Kornilov , Michael Paquier , Alvaro Herrera , Marcos Pegoraro , vignesh C , Robert Haas , Zhihong Yu , David Steele , PostgreSQL-development , Pavel Trukhanov , Tom Lane Subject: Re: pg_stat_statements and "IN" conditions Message-ID: <20231013163730.GA1362765@nathanxps13> References: <20230211120820.y7krq37jubnjsa5b@erthalion.local> <07919318-6c35-a13f-6a1d-98686a3e38de@gmail.com> <20230217154602.uf3a3cgqeoeysycz@erthalion.local> <8702fa3e-5aac-dcf0-161b-faa2b9eadad6@gmail.com> <20230226104619.jfmwrpd5zrkmp3eu@erthalion.local> <20230314190432.l4oe3wa3pvt5b7hx@erthalion.local> <20230319122734.xkba536kut3g4gcy@erthalion.local> <20230704044611.GA3373000@nathanxps13> <20230704190256.arszjcwvrjekxj25@ddolgov.remote.csb> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230704190256.arszjcwvrjekxj25@ddolgov.remote.csb> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Tue, Jul 04, 2023 at 09:02:56PM +0200, Dmitry Dolgov wrote: >> On Mon, Jul 03, 2023 at 09:46:11PM -0700, Nathan Bossart wrote: >> Also, it seems counterintuitive that queries with fewer than 10 >> constants are not merged. > > Why? What would be your intuition using this feature? For the "powers" setting, I would've expected queries with 0-9 constants to be merged. Then 10-99, 100-999, 1000-9999, etc. I suppose there might be an argument for separating 0 from 1-9, too. -- Nathan Bossart Amazon Web Services: https://aws.amazon.com