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 1tI1mL-00Ba8v-7u for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Dec 2024 08:27:37 +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 1tI1mH-00F97S-H9 for pgsql-hackers@arkaria.postgresql.org; Mon, 02 Dec 2024 08:27:34 +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 1tI1mH-00F94g-6H for pgsql-hackers@lists.postgresql.org; Mon, 02 Dec 2024 08:27:34 +0000 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1tI1mF-000cSP-DV for pgsql-hackers@postgresql.org; Mon, 02 Dec 2024 08:27:33 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-aa55171d73cso891991066b.0 for ; Mon, 02 Dec 2024 00:27:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1733128050; x=1733732850; 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=gcFvfUIQ2r4RlSKzFzdYuDGNuc77GWMuQk7D5fpxnsY=; b=hvQLspaHwQuLzyG5yJWMpoAMmryErCssNlDGQhNRWtQ1EcqJX6zvM1B2rvmP+QuQOb Uo590gMv1u0PFLuO3YHQ5a6jeinj5pSHDFLnbfH8MAfhzEMFY8IUTWBA0XcFK5RqPtZX lWx1seQIxCXiVa6FP1R2XZgqoyHYMlpA46qG50jLetrU46t/R/02DtZrVwWmFFWngBvh fPsSnXnPTG+MmAnIhgcwVS4Cx/Bn8skFDCHC8dnkecjmlepnDHdE1bTaIvpdAyQ0k9Y5 cYV589SZZGh0aeiGJ4LVa+L4vCHMgXFiSyINI75YbOdjf02PLSeM8zDPEdQibjxRGtuI kP+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733128050; x=1733732850; 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=gcFvfUIQ2r4RlSKzFzdYuDGNuc77GWMuQk7D5fpxnsY=; b=DHV9KzhFQnj36HOhivU2NOxKkb+60Tgjfdh6Mqeme1LngmbHhq2Rj8Ofy3hggwHxxi B9Cck+J82KKt8LPFrAKoQVkvc4hQij5caM0Iq647Crg1D4jpBamKheDBDDY5E5Dzz7nz mj8Stmq5bFBDspl3Fuyn2WgqFqLAcWT/ePF7vBYZoJ61ZTO3qnFLzoMBHEV8qjTYaKCK 1C6mYDcfYBnNJR8ZCEZWCv1iq5ybBeQw5Yph6/uCHztpAAzblfaN20HKgCAX57pS3WcY 2RAk4x7f2pK6mHg+xVzg+NuG/so2Jsd402wxGJmJT0NvbeA4ij8++AmnkqeCE9KIpQHe 0Dug== X-Forwarded-Encrypted: i=1; AJvYcCVnF8/X4E/gdh9G2woIhKVQMZxalXEz6N1TPuS0E3LJlwvqrrT3RAGDGN+v0UcIk6tGSWCZHUHACXPoTk3Z@postgresql.org X-Gm-Message-State: AOJu0YxafAQ+Go9S1yElJWgUt4tWxYYQNk0ciBDE6JirVpmssdqqO2q1 6PcepMksdhEgZ1BfaY1APnpI2m29TOVAvpcCuq2g6UgpRsijNeh22b9EKGxJ/eo2s/dnjqRDXJn 5nX/2PpWqlgtUDcwE6zz6p3ta4z8= X-Gm-Gg: ASbGncuZzDwxsqhn3OZOgRFAm04Nph9OmO5K4a/tbQAVFrt65mf57S6ZlGF5/nRbLrI MIws4vD9m5s9d8gfb/jifh/oMJBoGqeSf X-Google-Smtp-Source: AGHT+IHUeAwKoDViBOOuOfFX51XiziXux7d7iJCp3lAh6B3d9Zp4fR5o1DpCB1uKntJtHuxecKUukEOlogozun9XgcU= X-Received: by 2002:a17:907:1de8:b0:a9a:eeb:b26a with SMTP id a640c23a62f3a-aa5945081f0mr1890066266b.1.1733128049288; Mon, 02 Dec 2024 00:27:29 -0800 (PST) MIME-Version: 1.0 References: <9b10c6d3-52c4-4eef-b67c-c33442667729@postgrespro.ru> <9485d892-fd04-4e3a-ac24-7dd767cb7333@postgrespro.ru> <0B6CBF4C-CC2A-4200-9126-CE3A390D938B@upgrade.com> <6732acf8ce0f31025b535ae1a64568750924a887.camel@moonset.ru> <5AA8FFD5-6DE2-4A31-8E00-AE98F738F5D1@upgrade.com> <85b963fe-5977-43aa-9241-75b862abcc69@postgrespro.ru> <9C7A167C-DCDE-4A17-9ABE-6276723FEC50@upgrade.com> <2d493cf9-9ba7-4cc1-a3f2-67afd7c163ee@postgrespro.ru> In-Reply-To: <2d493cf9-9ba7-4cc1-a3f2-67afd7c163ee@postgrespro.ru> From: Alexander Korotkov Date: Mon, 2 Dec 2024 10:27:18 +0200 Message-ID: Subject: Re: Vacuum statistics To: Alena Rybakina Cc: Jim Nasby , Andrei Zubkov , Masahiko Sawada , Melanie Plageman , jian he , 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 Hi, Alena! On Wed, Nov 13, 2024 at 6:21=E2=80=AFPM Alena Rybakina wrote: > Updated 0001-v13 attached, as well as the diff between v12 and v13. > > Thank you) > > And I agree with your changes. And included them in patches. Thank you for the updated patchset. Some points from me. * I've read the previous discussion on how important to keep all these fields regarding vacuum statistics including points by Andrei and Jim. It still worrying me that statistics volume is going to burst in about 3 times, but I don't have a particular proposal on how to make more granular approach. I wonder if you could propose something. * Previously PGSTAT_FILE_FORMAT_ID got increased by 1. Your 0001 patch increases it by 2. It's minor note, but I'd like to keep the tradition. * Commit message for 0001 looks nice, but commit messages of 0002, 0003, and 0004 look messy. Could you please, rearrange them. * The distinction between 0001 and 0002 is not clear. The first line of 0001 is "Machinery for grabbing an extended vacuum statistics on heap relations", the first line of 0002 is "Machinery for grabbing an extended vacuum statistics on heap and index relations." I guess 0001 should be about heap relations while 0002 should be about just index relations. Is this correct? * I guess this statistics should work for any table AM, based on what has been done in relation_vacuum() interface method. If that's correct, we need to get rid of "heap" terminology and use "table" instead. * 0004 should be pure documentation patch, but it seems containing changes to isolation tests. Please, move them into a more appropriate place. ------ Regards, Alexander Korotkov Supabase