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 1suHLg-005abK-Mn for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Sep 2024 20:13:57 +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 1suHLf-00EYSr-Om for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Sep 2024 20:13:55 +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 1suHLf-00EYSi-Eq for pgsql-hackers@lists.postgresql.org; Fri, 27 Sep 2024 20:13:55 +0000 Received: from mail-lf1-x135.google.com ([2a00:1450:4864:20::135]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1suHLb-001PLO-Ft for pgsql-hackers@postgresql.org; Fri, 27 Sep 2024 20:13:54 +0000 Received: by mail-lf1-x135.google.com with SMTP id 2adb3069b0e04-536562739baso2233391e87.1 for ; Fri, 27 Sep 2024 13:13:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1727468032; x=1728072832; darn=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=1jXbNUSYX9xr8GGeVyNsTQnKM5foZrdMkyR4MXdD8H0=; b=NIYmwXBWpVcim3Ye4Rmk3mXz3YadS1AZ9KWWcoq9LF8Th9T6OEGjiVf608n2h2Kl3e uyjnL3GqANnhhoJXy65CE6vR75If+7bXImIMJmnm5al5p1sl1TQEv1T1V6R8YiNUgn91 nLBGE0kTOQ5kUDDLKZzAVhazhdICtjNYHpz1wZHjeKS8+ih6QUTh38cjqsK1tu+myhA4 OnJ84ZudxXucKlEsNe/vaeCzeG9i2kafl4FfqmIeZU2Y7A56LlpNHoM9nIw3TJ1krWpu 3iNXJBI6gTVKQ/94qx2jXehuBG4JcA1ik3ys3G7xkjtU+ufU1uyOMxz1W2Su+EMZVoMV r+hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727468032; x=1728072832; h=content-transfer-encoding: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=1jXbNUSYX9xr8GGeVyNsTQnKM5foZrdMkyR4MXdD8H0=; b=wynY17Z1UBWDGQB1aMkIdFBCyzSaKRVKe3BpxDAR7KsY/j7n3AOz0aAjxexs/ef4ON cKUdPLdhdANYzQw80++Yl/2wM0pYcisyLGCyIjOWCODR+WEkQVcNCJrVWfB0DoZlphOs qRIMHjJpC3C/ULUyTSyImO1CBT/cQ4Ja5T8wjcDexVN0lID+PCPhrhCSMVPHsnsKk0BL sfMN4GKnxpLnnjyrajcbLLleMHH8/CgEADT4dtRPFbRtU/8H1VrXk8h0GxNLGZjHZ95C HRRr93OlVg2/sUx0mh2qXFUQp76KfP89e2r9Wnzd4IvmufdH/MHJHtzacdpWlnUH8234 pwZg== X-Forwarded-Encrypted: i=1; AJvYcCWgUXb/W2BdPzfLgVrGeA4MHJiIfcXaAvqtHwBwEWyM3fvWE80WwhIlVRAOcfMGefENEca2HNBHapYygit1@postgresql.org X-Gm-Message-State: AOJu0Yx6x2dW2tQOpwhriGe5sPiuna8l8T1vNAtgRxAWLf66wfHqtDrc Av5G9ufSnqa0PowB4Em3AbFBD6aV+Lp+sA2Ni2nr7Da8Vta21nZFaMG9R33zf7XiOt9YexHWxa7 Dr35DFUm9pMRwWqcduwSwC7mxleA= X-Google-Smtp-Source: AGHT+IHBmTKveGaDFRXjTwD9qnatFd4wIVOzBKX+SKvQFIe1stqAAi2/J19EzdJC8lrAPfGu2eiwKlXZ93kLibsc0qA= X-Received: by 2002:a05:6512:b11:b0:536:9ef3:3b0d with SMTP id 2adb3069b0e04-5389fc34821mr2588808e87.2.1727468031953; Fri, 27 Sep 2024 13:13:51 -0700 (PDT) MIME-Version: 1.0 References: <53c47c2d-72a5-44f2-900c-9973b2af1808@tantorlabs.com> <4a902cea-54fb-41b5-b208-b84731a5f577@postgrespro.ru> <092adec6-4eae-4bd4-bd0d-473a9df1282b@tantorlabs.com> <3deae1bd-ad84-4459-a26e-04c9136b84e9@postgrespro.ru> <9b10c6d3-52c4-4eef-b67c-c33442667729@postgrespro.ru> In-Reply-To: From: Masahiko Sawada Date: Fri, 27 Sep 2024 13:13:15 -0700 Message-ID: Subject: Re: Vacuum statistics To: Melanie Plageman Cc: Alena Rybakina , jian he , Alexander Korotkov , Ilia Evdokimov , Andrei Zubkov , Alena Rybakina , pgsql-hackers , a.lepikhov@postgrespro.ru 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 On Fri, Sep 27, 2024 at 12:19=E2=80=AFPM Melanie Plageman wrote: > > On Fri, Sep 27, 2024 at 2:16=E2=80=AFPM Masahiko Sawada wrote: > > > > Hi, > > > > On Thu, Sep 5, 2024 at 2:01=E2=80=AFPM Alena Rybakina wrote: > > > > > > Hi! Thank you for your review! > > > > > > On 05.09.2024 15:47, jian he wrote: > > > > > > On Thu, Sep 5, 2024 at 1:23=E2=80=AFAM Alena Rybakina wrote: > > > > > > Hi, all! > > > > > > I have attached the new version of the code and the diff files > > > (minor-vacuum.no-cbot). > > > > Thank you for updating the patches. I've reviewed the 0001 patch and > > have two comments. > > I took a very brief look at this and was wondering if it was worth > having a way to make the per-table vacuum statistics opt-in (like a > table storage parameter) in order to decrease the shared memory > footprint of storing the stats. I'm not sure how users can select tables that enable vacuum statistics as I think they basically want to have statistics for all tables, but I see your point. Since the size of PgStat_TableCounts approximately tripled by this patch (112 bytes to 320 bytes), it might be worth considering ways to reduce the number of entries or reducing the size of vacuum statistics. Regards, --=20 Masahiko Sawada Amazon Web Services: https://aws.amazon.com