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.96) (envelope-from ) id 1w5TJ5-003Hef-0X for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 18:50:19 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5TJ3-00G0q3-1Y for pgsql-hackers@arkaria.postgresql.org; Wed, 25 Mar 2026 18:50:17 +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.96) (envelope-from ) id 1w5TJ3-00G0pv-0Y for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 18:50:17 +0000 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5TJ0-000000017S1-2ynH for pgsql-hackers@lists.postgresql.org; Wed, 25 Mar 2026 18:50:17 +0000 Received: by mail-qk1-x731.google.com with SMTP id af79cd13be357-8cd80f56b27so23703985a.1 for ; Wed, 25 Mar 2026 11:50:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774464613; cv=none; d=google.com; s=arc-20240605; b=VLdyPKrbKrQzgGqX5miGaLmSf5zlRAdQThZjar6Z64U049OWioKfTAE3x6QxpTZiRj k7Ew5oFNNnOlahISKfIZXmX5W7qerK70DkiGxOFG3bxkv5xhlZ+MMJ7TRcr0S1GeEQJn IJ6qDOetlCvQWhiuTh3L2MuzaijVViuXz/gjIm8pfEzChOoxaCrS59GkCLJ6DY4NZEZh EvAhWELjgp27lsxlZp+4D7+KX8Z4bLYYA0E5mLpUXTgFMzr14P46UZdc9T6QVxjfy+Ch 57eOgt7di/HeUAwrtuP6kMQ2kLsX2HCehZRfo8OeC7ytotypjbxPwd0BP2ho4Ok5g1bo ggcw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=YGizkfx3guT5N1dlsitLIbdGSVwPfXTZZG717cBy9a4=; fh=pwVFdc5vavxVmrESu+qJpw5znQUSef0c82LNPYbVeT0=; b=GeXLhv8AJDgWagqnEq4/B0kB2/0kGI9y13hMlOL0apU6idUYrWDbnBxMjDyv5Dte8z k86/tZTXUwcBmtwZcawbeM/omUcNjKRXvQnbNArQTVvufIJn0njD8XqZEbgdRlHEPl/C 7zO902TTKxPQEVACchvtk5mujp3p/qHtN+6rZGVYGlg8q2nDaAXe8exRYbP3tBVOD1S+ a1BbMYkI1QDg1/3nzMSELFN6LVnHWwbnoKFGFAhxmK2b8FC2KuezNpgmqvpvi9bY0Tgb gSebniIlW01zhVqA8uoFcWyTCuMoW10QejYywO5iurjNKGvaeWe3lNyTGHLbIaF33uL4 6mEA==; darn=lists.postgresql.org ARC-Authentication-Results: i=1; mx.google.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fittl.com; s=google; t=1774464613; x=1775069413; darn=lists.postgresql.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=YGizkfx3guT5N1dlsitLIbdGSVwPfXTZZG717cBy9a4=; b=WhjuvNjRS9emTCNISHylrGE/Dc2gNo9iVaIivf3nX5KZz9d+D+MDCvpo7cJe/GOdF3 iVabw3ojcXtvaUoqdxRUIR0c6ztDb//n2uFBMeCm4HDQaFarKpQ12JjGQQoVzSFKkQB4 tt9LA+UBIE3v7OHvE+aW+j7zaFn+7kyufZZH8= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774464613; x=1775069413; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=YGizkfx3guT5N1dlsitLIbdGSVwPfXTZZG717cBy9a4=; b=kaPIaHrVakvG3TLlykyWMnLtOYP9WzfeA/u40Fata8NOUP/nrWPY+4yKjdDYHY3ECP iuk5dElkcmenG1R4s/jX71c67neMrFxaWiE7J+zdiLHYQg2kPptSMr2/hPcGDLqPtjm+ Umci3Y2BUUCgdcPOl0sPj6aVFgxW5TRxQJ2axLVBZJ7u2MmXLlhPJwIAmghmB4IXYdPS w3SzcO5DAzxp9noraLCE/81soIX1sMt5rzzS8P3eU4jnn4kgauz6oP6cUovUJEnkaYb8 Si1qs4YAgnTamGBq+WoaBQu66pZ5PrFw5no3DbI3PCAGsYGJ1yb1bI6H+xauKfl9zfJ1 geig== X-Gm-Message-State: AOJu0YzzkRVHf4HnnTaLK6THAV+Vy33BWjqywNSHke28umx+qqwhFZ3h 49a+KbwoqYtYOtoG8Pw4iBVjAxsyw5OCyadHtlqjoId4AIYdTYvROhZBPEbh7mK/lXhb7LVnsDL RH10nHHULoNNmR38Wmv842jlG0sfaNFVBw5dtmXDm X-Gm-Gg: ATEYQzyh2oot0WQIUwfMiqP86r0Zx3Cm6wyc8cCxJHGOYdmCZtPkreHzup+5KJWhe/1 kurtxBODW3czt3gnyGc1C4BPWvMtQHDkPJf9WLgjj/B/IikbsOdGxAHA7zG5vROiv1aSy5SAdcA zMSncfruEgtzTgqOfaQBcH7TTZ26k6WueGFCnOSRVX8yWoPVi5WEjXQTtpXRIBljEub3mojMwRU FvMeGG4AZrSbvrPwBHfUcMY+aTirl2OafbV9junoXo1vDCOSrJP9cVl5xG8IPWTvN4z8qqap9ee v1Bdnr25ALptfu+9JnnOQXC5ERNfrWM5A0rMcK0= X-Received: by 2002:a05:620a:458d:b0:8cf:d717:c22e with SMTP id af79cd13be357-8d0010046a8mr715823385a.28.1774464613361; Wed, 25 Mar 2026 11:50:13 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Lukas Fittl Date: Wed, 25 Mar 2026 11:49:37 -0700 X-Gm-Features: AaiRm52NnyeMiqlArqcm0M53GUJpx8daunRsDLJ5ZfRBYzughjPRRU1SLJ6Qm8M Message-ID: Subject: Re: pg_stat_statements: Add gc_count and query_file_size to pgss_info To: Sami Imseih Cc: PostgreSQL Hackers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi Sami, On Sun, Mar 1, 2026 at 7:44=E2=80=AFAM Sami Imseih wr= ote: > I do agree that having such additional information, with proper > documentation, is a good idea. However, I do wonder if we should hold > off on adding any of this info in 19 because of the point you make > below, which could completely change the information we need to > expose. Adding this information in 19 and then removing it for 20 may > not be worthwhile. Yeah, I suspect you're right - I'll mark this as returned with feedback for= now. > > I've had a patch to improve this prepared for a previous cycle, but > > wasn't sure it was still needed because of the discussion re: keeping > > query texts in shared memory. But since it looks like that won't > > change for 19 (though I'm hoping to contribute more to improving that > > in the PG 20 cycle), see attached for consideration. > > 19 has 4ba012a8ed, which allows us to serialize and deserialize query > texts stored in, for example, DSA, with a dsa_pointer tracked by the > entry of a custom stats kind. I was also planning on continuing this > work for 20, and getting 4ba012a8ed was an important prerequisite for > this. Yup, makes sense - I think 4ba012a8ed is a foundational piece to make progress on this in 20. I've also been wondering if we should prototype a new pg_stat_statements module separately (e.g. in a GitHub repo, "pg_stat_statements_next" or something), just to allow quicker iteration and allow easier testing of a pure in-memory approach, before bringing it to the discussion table for -hackers later in the PG20 cycle. Thanks, Lukas -- Lukas Fittl