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 1vyFZo-00HZ6L-0N for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2026 20:45:44 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1vyFZk-001IWo-1Z for pgsql-hackers@arkaria.postgresql.org; Thu, 05 Mar 2026 20:45: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.96) (envelope-from ) id 1vyFZk-001IWg-0g for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2026 20:45:40 +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.98.2) (envelope-from ) id 1vyFZi-000000014Pz-1z9c for pgsql-hackers@lists.postgresql.org; Thu, 05 Mar 2026 20:45:40 +0000 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-b9382e59c0eso355305866b.0 for ; Thu, 05 Mar 2026 12:45:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1772743537; cv=none; d=google.com; s=arc-20240605; b=CuM1lTsQndqDarmHAs054N8Kstq00ppfBCbkYsAi0Tv+4R7Y5xjPO3Ysk8D5uTTsCz IA5OHssycJZP5GdInZv1WDD/k0t2gOX8XVba0nLiF9gpiCC/i/gGFyZx7L2QseAPh8jE 83UbZWrwX7dTGz9QUebzqox3xq1ATasN6v64/Q1gZiW7JCFC/6O0XgVwU8d3QI2MlgHg S8pUlFAYRRzVIj0gh4EFDyEYQgBW8PJ/hMAuLVxhR06VUAH+LQca7P/qA4xuw230GT89 Edzcc3FaRJvZ5P2aTev0L9+ps4oUtFPEizNsi55Mo8mgf6trkmmKyuleErvjg1nvz+Ys a+sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:dkim-signature; bh=OgAIV6ooyKqj4nGxq3oukb/blJUl4Hj9Uz/rfboSx/0=; fh=mLEP/CLjp+73pXJFtu4e3ezWTtLxAnFJO3QPu5T0fRU=; b=cON8oLPHFrvGrWRsCB54julIRRW+dtUCXsuWEDrt1oRT/Wp2g0VvGx+DSvgTffjPkg yUbxaZOo1q1CfJkrmiJBIXqKlHelZFYvCr2ep0a6qfQ3BolKbOJy6Gf2x79+bp6D6OOe oJtsDhkqDTmGNi5+U2o8oyYtyHyLS9Cb54pJOsJLSYlVtWprLhpt1zM2z19XTRW4dMfj ySX8nXd9JKRevBwB1TdyrziV+bzw8BODukPSVVJzWVziEXDoUTniKLTfFR6dtMG5KmtD q58u+Z230qP1uMp0Ra/F5MWKb9FmBA5ibOJVloEDQokNCR/jbE7q9jEnedV/ZkqdoY8S rHvQ==; 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=gmail.com; s=20230601; t=1772743537; x=1773348337; 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=OgAIV6ooyKqj4nGxq3oukb/blJUl4Hj9Uz/rfboSx/0=; b=iH+LlR6Hhqame6i1vOzFs/bxvSREcnisJE9dh+NQnQF8L+eBFAm+zyJvYV6URFsDoU dSPMRnTILEa0w2IbvEmhX+dyIPEOU4gphbiASvCfgXTtVUqkL8LJ0p7Pv+mElffUulPx aMlIAu+WFIRyAQeKu4AkgvM7C7c72VDGOqaEHbVytLrdNNb9c9YxSMGH3ovshH9QQSkz mGqFF4Vf7pXz5+yyJqsemSbUOqC3Vwd3kRSb6P6oHls7zyPhr+nn1WIY7GVRRvF18DM4 VCdCs68C+8OWcqB6fWPa6hysrkInA2kP1ARn1sWgUz1+T388PNfkoUAfTZ74tjR+E+ML uhyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772743537; x=1773348337; h=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=OgAIV6ooyKqj4nGxq3oukb/blJUl4Hj9Uz/rfboSx/0=; b=FUzbVOv/gHW1XZy2nyn6XYF6kEDa89v6k3sZwL0VK2c+A3MQ5b81qphzuMs/TuYnqa cUp1GbrS+b4YJgGhKlojjwFtHQvmX0PV+EUL9xzlqVXfCKdGteKByUoe9gwuOOQIF1Uo s6hklhq1jv3dWdir+a4kPLUG5M4FJnpCs1xf9oqDiKWzwlWID4rygpAhdyOGmYnX/aId NYiJ7UCubUKoUsgnnqEUPb0TRglM+OCjdQpI5n9PSm4h4E3QU11zKhgxxCQptMgpOzZM Q8xXsz2x+uXfSc856x56XWVS6ZU03H4+jp0uSZeYM6FxhZaRH8RmLM5ZwAJDgtXMrcJc ubEQ== X-Forwarded-Encrypted: i=1; AJvYcCUx9vw/bTS/+RzapN3zJRtJwjIW6JXyICQFjYzIKnpEJhtqFuuJgFnR1c5lMp6CaOjHZ8Pc+CxOQ+3lW23x@lists.postgresql.org X-Gm-Message-State: AOJu0Yy9I85Ap3hCnjx1SX71PdyaAL2fqauKL2ZyUU4kjCOU5ETOviCh gXhxoQfbhIZOxXTwhvpIjVCbD778AEgdVu1osZlp3GXgYxElSDMGrT+GzyyPTVmzHmvrxhyX+4g t6HbuaFDS2tAP1rltZ5sMB3S++89rZ/o= X-Gm-Gg: ATEYQzxnnY2TDTn04dE2np6CSl7HcTDili8KFRfXEyFRZFHZuS/0emGyZMkMSntr0ts /+RTvQYuXZsYU1R23yQnB8QgSrrA2qkOwGl0jULSz99IjaCa+y6kcw608fYsGj7G+c+irMqbTHm OowCef/JHDiYSpxlaexTO1xLxY5UKwIapfvVwPFIvT6R2JqZiBlDb4RQBNOz112aSlYbewUT73S BiRABQwsdLn4VvacQkoupQTNppE9mOslxP3adNcjlOuniSQkNZm64G6hG5v4K+nEcUAudcOd+Vu 8e56hg== X-Received: by 2002:a17:906:2081:b0:b94:da8:e6a7 with SMTP id a640c23a62f3a-b940da8ec8amr152305366b.36.1772743537061; Thu, 05 Mar 2026 12:45:37 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Sami Imseih Date: Thu, 5 Mar 2026 14:45:25 -0600 X-Gm-Features: AaiRm51PDGBVEImJHEuKUixxbDqa8TK2A8helQjRYZ4GfHCZwoi3zB_jQioMbtI Message-ID: Subject: Re: Add starelid, attnum to pg_stats and leverage this in pg_dump To: Corey Huinker Cc: nathandbossart@gmail.com, pgsql-hackers@lists.postgresql.org Content-Type: text/plain; charset="UTF-8" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk >> I noticed that you changed the tests to selecting individual columns. I am >> not clear as to why this is better? >> >> -SELECT * >> +SELECT schemaname, tablename, attname, attnum, inherited, null_frac, avg_width, >> + n_distinct, most_common_vals, most_common_freqs, histogram_bounds, >> + correlation, most_common_elems, most_common_elem_freqs, >> + elem_count_histogram, range_length_histogram, range_empty_frac, >> + range_bounds_histogram Makes sense. BTW, I do not see a CF enty for this. Thanks! -- Sami Imseih Amazon Web Services (AWS)