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 1w73At-004uXt-2S for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2026 03:20:23 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w73Aq-000pnN-3D for pgsql-hackers@arkaria.postgresql.org; Mon, 30 Mar 2026 03:20:21 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1w73Aq-000pnF-2H for pgsql-hackers@lists.postgresql.org; Mon, 30 Mar 2026 03:20:21 +0000 Received: from mail-pl1-x631.google.com ([2607:f8b0:4864:20::631]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w73Ao-00000001jwM-3Enh for pgsql-hackers@postgresql.org; Mon, 30 Mar 2026 03:20:19 +0000 Received: by mail-pl1-x631.google.com with SMTP id d9443c01a7336-2a7a9b8ed69so39667345ad.2 for ; Sun, 29 Mar 2026 20:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1774840817; x=1775445617; darn=postgresql.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=o168FQKZIPVFWbUU6hqntiS2EzzlfNCTon003+LuzHU=; b=TeBzapzGwVL4yeJzqcJag1qMshIcJ5MXiVcmDmEhji1sAnvwVsbDsRM8692EU0Tnm1 sw6kEwyyqyCNzZUuUXHqMDuanjCFe/4f4RtrAUSjr8hE1j7aBAPnZb6JIHOJ7AkUV5EA p4i2PlBtI3KRiiEZWbwev9vvxxq+NANR8B1HphEMm7CvLbiGhnhBIpzhh3BG2ef21OCC Ag381BvITk4B4cwek20efD52Od3eS3ly5OdC1syG6TjdLWoTTtS1D868j5JBzrNlf+x2 OE8Bsoyh0/fH6OCIVPRCZU5bovQaWWFbz4o5Ey7sDqemo3z0M9fONc7euo0t0oQ0vRBj nqlw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774840817; x=1775445617; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-gg:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=o168FQKZIPVFWbUU6hqntiS2EzzlfNCTon003+LuzHU=; b=S+6pymaFlkZKJ6mX4ZLe3qIqGKkivrG0fstQQCxFiNOVF5V+ckVvCHnzH51oXVfFyP VwyR3paVVoMPOjPVuYusKl1oXdRkzoJC4ckHrru0lpXVThSz1T4rzjKRbGbIj91e4ert 5XvJlciQTTgoIhuuEmpEftesyIWLP+ucT9oRBbY5ejnZMPDYSXN4gRaRuMU6cqMEBYOi 3WbV0YNgSMpj2LySrq7IM/g7aoQ3ptxv89cwMe3/zdekO7n7Rn54IC/9Wq3Bmf5ehP7v sCnORXq9dkcJbCooAdhCUqnnH8rzhSue429/lVyV+u2CihcouzY03ZNOEiEF+T4lbDwl cmeA== X-Gm-Message-State: AOJu0Yxz5Ccg9aKLRkQnf54/3JA3wGFax1FJhNrT6sgKZekPTsclx+06 x6nsrSHUzoUKZckoxlvCJLI4TDdR8JFR1EM2ARjx7ax7MB8dKarcxzlbQTLY/C1GiXQ= X-Gm-Gg: ATEYQzwGkZ3fsXS//N/5c5PjHNUxrsDeYJOa0KJSVCFZSTFX8PAx5+K6JX04EZ/bzlI XAdmvuieD4ylIEkoWhdivxEzNgc4lMbmcnZf5fbPiAMGYEyoe2TUK1uTzs63Fa+f7hR4NM9EjwI tf2zXfm6cIShN9g81NpxGtHmbPhfBcyrUznxLF4PGlHZrlsxYlI3Gf7Fw5oxJtzYdPHJ60GGjPV FSbymLYvflp4TAChZbA9AEZ3ok8GmXOFhKLXTOJADqCYzio+EUKIjIfuANRcGVA6pLJg4YLikqA UHQt+d8R8lt2nkYxPjITd6zDm4T0SwfCY4lH79xaBpOB9/KVS86TTEEv95jEmt3HS15Sw08aupe uJqkSTqAjBSBtvDHCsPGGBlfgA53dgy91uaYCK212mWDA7yVm/gk5OZ/GfWKVyXWPZRFm7mDUQE 5Cua3t9s3j0F0Rxr52cRqPAzjTPqIg4Zs= X-Received: by 2002:a17:902:c94c:b0:2b2:3dd9:c5f5 with SMTP id d9443c01a7336-2b23dd9c7c6mr96419615ad.36.1774840817126; Sun, 29 Mar 2026 20:20:17 -0700 (PDT) Received: from smtpclient.apple ([45.32.121.103]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2b24278501esm63880495ad.58.2026.03.29.20.20.14 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Mar 2026 20:20:16 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.400.21\)) Subject: Re: Adjust error message for CREATE STATISTICS to account for expressions From: Chao Li In-Reply-To: Date: Mon, 30 Mar 2026 11:19:36 +0800 Cc: Michael Paquier , Yugo Nagata , John Naylor , Dean Rasheed Content-Transfer-Encoding: quoted-printable Message-Id: References: <20260324203430.411331c59ca462457ec0aa8b@sraoss.co.jp> <20260325131548.4c9a0c8d05a422021b1ba76c@sraoss.co.jp> To: Pgsql Hackers X-Mailer: Apple Mail (2.3864.400.21) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk > On Mar 27, 2026, at 08:45, John Naylor = wrote: >=20 > On Fri, Mar 27, 2026 at 6:23=E2=80=AFAM Michael Paquier = wrote: >> - errmsg("extended statistics require at least 2 columns"))); >> + errmsg("extended statistics are not supported on a single = column"))); >>=20 >> Now our documentation also tells that the former message is not the >> preferred project style (full sentences usually avoided in primary >> messages): >> = https://www.postgresql.org/docs/devel/error-style-guide.html#ERROR-STYLE-G= UIDE-GRAMMAR-PUNCTUATION >=20 > My reading of that is that hints/details need to be complete > sentences, and primary messages don't need to be.=20 +1 > From: Dean Rasheed >=20 >=20 > If we were to give more detail, it should probably be to point out > that regular statistics will already be built for single columns, > which is why single-column extended statistics would be redundant. So > perhaps something like this: >=20 > Error: cannot create extended statistics on a single column > Detail: Univariate statistics are already built for each individual > table column. I like this version. Best regards, -- Chao Li (Evan) HighGo Software Co., Ltd. https://www.highgo.com/