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 1w5vKj-003lWe-34 for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 00:45:53 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.96) (envelope-from ) id 1w5vKi-006qQJ-0s for pgsql-hackers@arkaria.postgresql.org; Fri, 27 Mar 2026 00:45:52 +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 1w5vKh-006qQB-3C for pgsql-hackers@lists.postgresql.org; Fri, 27 Mar 2026 00:45:52 +0000 Received: from mail-qt1-x842.google.com ([2607:f8b0:4864:20::842]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.98.2) (envelope-from ) id 1w5vKf-00000001NzR-2qOZ for pgsql-hackers@postgresql.org; Fri, 27 Mar 2026 00:45:52 +0000 Received: by mail-qt1-x842.google.com with SMTP id d75a77b69052e-506aa68065eso13730191cf.1 for ; Thu, 26 Mar 2026 17:45:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1774572348; cv=none; d=google.com; s=arc-20240605; b=Axml86kP4reAkHquM1PWr3iS67Gd67qfcwHgVSkeSBP6jP14tLaqb+zqtJVbH1HdcL fWLnlh7AVkWMd3YcAHmiRyECySY9PqFGl3hWwe7beNEX1jbwdEZ+QKP1gfrqZ5qv1XJ/ FfYQC+ESHGXwBoXAfOWMaElNggKAgIvgdP2pc6ZGb+IV3LdAmK2D0M9jBsSC9MuK5BYI y4GxNLJLj8b9WUTW7fU4XS4dysIpA0mW+FlB4XnbwyZ8wao13nKnFR1mXXpBAr1wxaeN D669zFMKV4BiPoZIZCYDb8FhkJ7OMUGHVZ1kaXhXx60vSQ29Rf9wML7LJqqQi0ozvs6V Qezw== 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=kFfIfJKu97JbNLRpq9U4gyd8XVLBzckF7304OaIw6JQ=; fh=LU46EXGghxaYbvdiesK7oiLFbYUlkUUx7Y6ZUKg1U+A=; b=beejEpnTpMccQ5ERcSTrZDCpx88/OyE88489DcYIFL3yKOAkPGJWQfW7V6YgdRifUk 6h9uSDEF9brcH2K8jnxHzcSQP50NIom6xb6WmSFbZ424RCb2KxjoxEu+NTx/yP3SBHoI Cc2wQMO1xQtLQSNgzP20hzLGFykwc5ifM/L+GLuDtrUz/Ja8gVlXbcT8gXOPWzNwFNya dC5+uSl2znPaKSDfqLTHBAPgvq2IY3IHRemH0FD6QzaaKs3t5UXpkCoqY2r4UKsuCjrj /Cm7wqgsmRVpvuCkXPmDhezFDybG9NhGJ9I73xRVh9XNRfIdKxxqiGtpWE9nbqxGisZi WyEQ==; darn=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=20251104; t=1774572348; x=1775177148; 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=kFfIfJKu97JbNLRpq9U4gyd8XVLBzckF7304OaIw6JQ=; b=p9vzZKPNrjgLWcmCcTUO8XeAfV7pkMh02pXJQqfWblLaWHajcVj7d7EOMFor8CFwAV ed3Kco4CO9gzigt/e2Sfpigr1lZArCUD6lpkgmYRvdhk72LMpvD8w+ozDuvtnbd2FEut 3dYCXaJ3dAGjQfnFUyohJQr5NvPneRK+dHuuG+6ukJGmCNQRYFJnk18bKqdCOYPIw/XK o1A8bMLaHcloteybLYKZMcPRyXRabRzY5NRb0qSvUo2u/pCMgaYGm1yV89fFNbkx594j +bMRldgqckb736Wx41Ez3WKk8kJIfHGGQAYs/vVmni1AjnA0OFPaBdKqt1g7z3FE+TFc Sgog== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1774572348; x=1775177148; 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=kFfIfJKu97JbNLRpq9U4gyd8XVLBzckF7304OaIw6JQ=; b=IFp8Fx2yy/E7TAm7mbySdIJQ4dR2w0elmmKYKEvR6Ui1BjDJoagcecKi5TFI7yPdrd yRN1fxcqcPN/8nayNQZ6KhAbDjqxl8szfSrTOfTLKmi2DLG0C3unDKLA9q0SpjwlpsXo RvA7eiZ3B113KMR+1x1r8KHKvPgY9iHR8+lUc8222v6oR9RMEKzydVvj1Mz8Q8T8idP0 eFoVr2LyJsDgDBdO9+veuTdGPjdgnvl6a5UvFF88nMViSIjYmWEoFIc055owsbLALyXR 7bKQAt1V2LbajIgYNCXNmEt0Ok7aaeoLDCmqQt+uzmwMFZMtRDHLCQ6KRT8bL7YSTlth 6IYg== X-Forwarded-Encrypted: i=1; AJvYcCWmN1W8IbzrG3M2/F/rffIB6pUvheNOONoRqaC9boT6X5VcZC93+AWk61J5y/Sw0JfBuxzjkj/OoUhkEjsg@postgresql.org X-Gm-Message-State: AOJu0YzxCckroqVNRX+luc124XLfVEuIjaYWP5Kur7vEPVqsjnqhGriU /vDDD/7g0l2MgFHxWdpieKh+fP+FdjRgz667eXxl63K1HzseyRtE+SW1iw4dQ9Q+9nnIBRuGbVM liY1yyuuw99A0wW91UstYLrtqM2jFSxY= X-Gm-Gg: ATEYQzwAHBfG8/5NWmfIwb2lKeCU1oQsZFhMs4Z+m7gytkJauJ+KFbFuVDIjSH2Bg+s R28eTcnwQN3Wq0jRqhC3FrrD92ORNL74EvVFmK07OTtoSSSCfJKc5hBy1+gMkLPmQ5kFMW0VeUa ct2I+9hB1wxUOCNXF6bLHIlIJRExXEd1eUu4R35DNQQwsq2vUCClzupPg1R8iNC/+iOdlyvUT1u hv5tbLEhDwJ3mIW+j2xWM9sNn1HQF0frk6RXjRDizT4+EV+x4siHXxqarlhzceZh5CjJxWRucQ8 j/8YFj1q86zdA4Sbv6anjjW4u7eOP27fEK/mbAplIFqBkGkjpD8myBMLn4Hc8wYrti5eOvf/7UE 6glv954gNy7zI4npq84tcl42Zf1Y= X-Received: by 2002:ac8:5990:0:b0:50b:2640:22e3 with SMTP id d75a77b69052e-50ba383e5a7mr8882811cf.11.1774572348115; Thu, 26 Mar 2026 17:45:48 -0700 (PDT) MIME-Version: 1.0 References: <20260324203430.411331c59ca462457ec0aa8b@sraoss.co.jp> <20260325131548.4c9a0c8d05a422021b1ba76c@sraoss.co.jp> In-Reply-To: From: John Naylor Date: Fri, 27 Mar 2026 07:45:37 +0700 X-Gm-Features: AQROBzBerTdwst9NsuKjSbD-EOGTiZYinpB17vWtchCoXEvtLeJjlWf_GRtuljU Message-ID: Subject: Re: Adjust error message for CREATE STATISTICS to account for expressions To: Michael Paquier Cc: Yugo Nagata , Pgsql 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 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")))= ; > > 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-= GUIDE-GRAMMAR-PUNCTUATION My reading of that is that hints/details need to be complete sentences, and primary messages don't need to be. If the obvious way to write primary message is with a complete sentence, I would say that's fine, but I don't have a lot of context here. > Perhaps something like "could not create extended statistics" with a > hint describing the cause would be better.. Full sentences usually > apply to errdetails or errhints. If we're on it, we could just as > well improve the whole thing, I guess? I don't feel strongly either way, so in that case I would default to not changing to errdetail. Looking elsewhere in this file, however, I do see some messages with "cannot do X because ....", and I'd be more motivated to turn those "because" phrases into errdetails. --=20 John Naylor Amazon Web Services