Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbjyt-0002kE-Rp for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Apr 2021 13:11:56 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lbjyr-000896-CG for pgsql-hackers@arkaria.postgresql.org; Wed, 28 Apr 2021 13:11:53 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lbjyr-00088z-0s for pgsql-hackers@lists.postgresql.org; Wed, 28 Apr 2021 13:11:53 +0000 Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lbjyn-0006jo-M3 for pgsql-hackers@lists.postgresql.org; Wed, 28 Apr 2021 13:11:51 +0000 Received: by mail-oi1-x234.google.com with SMTP id u16so45688012oiu.7 for ; Wed, 28 Apr 2021 06:11:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telsasoft-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=/1Rxf5u9CoVigZreTmcLUiaqHNIiloWbMu6U/y3u7Hc=; b=owg9OIGaxREV2Ujpx3diIH2NulwSk3TczxYTEBSoFEaFehs4CJCy9hLs3zwldPLl5F 4kj5EJwFuVGIE6M1BJP3+qVXWmJT1Sv3MvQGsc2Ref9zTgOyttfjdlZj6YMcIFRB0oxq o5Y6GEqhuaNdm1P1en4PdVS4/0K1pSPOWzFM0yc5qHbos/vPLkEfkH8ruaiQcKBpIJAn vz3SdlS70z4ZzzIJJx1tJKAUhuz+GSqrZ/WroY6oo8fLlt0g/BG+Mo3Nhv4j8VwRHWsh Vm75PdRMUL2TRdtuVZx9hCfu1ZtTr33D2+XXeyIB2vqXjTWQbXO/+O5mTEMVu2n6OQal ePxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=/1Rxf5u9CoVigZreTmcLUiaqHNIiloWbMu6U/y3u7Hc=; b=uf4fCd0DE3JudZr0NurD7ts+DjRqdElMlklf13+ubdrkZ5o3/qkIn4uT7SvH6SZxbv WwUwom0nGZ11dYeA3F/6ppPvRLe8a3kPKq/sdqLu09WDDs6theL8MEVr84AZtTLFTpBK bXPzPJ35IIwFbCQlFVC3/ThxS65EykE2WEi190qrLpjGUOwSSveha62yrdSmoA+e6Cfv /Zx42hfiUzFW+aUgObL1dZ8lQtRsXf1BZ3bNy6hiSfntUasnvv5wNJE/z+TVPB4dY2W9 y2gcRT+uEGYJkSwZt2b9ntgQFMNNZyBSCnlxKfAVVEPVynwaeJzLedahV1q+iJdfDdve 5F5A== X-Gm-Message-State: AOAM532xvXUwSj3o05/rkK5K7CMi+wZfNt7wf4AYOArAj2ZVd/OVGXHL HinZsifsQNdXOYZFCOh5DFxrUA== X-Google-Smtp-Source: ABdhPJzEuOfnemQzAFTO8oz1mJjYXYE8XyYkW0fZAJzcl4+3baEmbnhGilXAyyd+SJ5FTkRB5fG2KA== X-Received: by 2002:aca:30d7:: with SMTP id w206mr3598114oiw.163.1619615508890; Wed, 28 Apr 2021 06:11:48 -0700 (PDT) Received: from pryzbyj.telsasoft (charmander.telsasoft.com. [50.244.222.1]) by smtp.gmail.com with ESMTPSA id w140sm679302oif.42.2021.04.28.06.11.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 28 Apr 2021 06:11:48 -0700 (PDT) Received: by pryzbyj.telsasoft (Postfix, from userid 1000) id 333F0800A36; Wed, 28 Apr 2021 08:11:47 -0500 (CDT) Date: Wed, 28 Apr 2021 08:11:47 -0500 From: Justin Pryzby To: Kyotaro Horiguchi Cc: pgsql-hackers@lists.postgresql.org Subject: Re: Some doubious error messages and comments Message-ID: <20210428131146.GC27406@telsasoft.com> References: <20210428.173633.1525059946206239295.horikyota.ntt@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210428.173633.1525059946206239295.horikyota.ntt@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Wed, Apr 28, 2021 at 05:36:33PM +0900, Kyotaro Horiguchi wrote: > 0001: I found some typos in a error message and a comment. > > multirangetypes.c: 1420 > > errmsg("range_intersect_agg must be called with a multirange"))); > > This "range_intersect_agg" looks like a typo of "multirange_..". > > operatorcmds.c:303 > > * Look up a join estimator function ny name, and verify that it has the > > "ny" looks like a typo of "by". "ny name" shows up a 2nd time. I have another "comment typos" patch - maybe someone will want to push them together. commit 32e979c652c68ca5e3a7f308d677058e0c08547b Author: Kyotaro Horiguchi Date: Wed Apr 28 17:23:52 2021 +0900 Fix typos ny name: 321eed5f0f7563a0cabb3d7a98132856287c1ad1 multirange: 6df7a9698bb036610c1e8c6d375e1be38cb26d5f diff --git a/src/backend/commands/operatorcmds.c b/src/backend/commands/operatorcmds.c index 809043c5d1..fbd7d8d062 100644 --- a/src/backend/commands/operatorcmds.c +++ b/src/backend/commands/operatorcmds.c @@ -265,7 +265,7 @@ DefineOperator(List *names, List *parameters) } /* - * Look up a restriction estimator function ny name, and verify that it has + * Look up a restriction estimator function by name, and verify that it has * the correct signature and we have the permissions to attach it to an * operator. */ @@ -300,7 +300,7 @@ ValidateRestrictionEstimator(List *restrictionName) } /* - * Look up a join estimator function ny name, and verify that it has the + * Look up a join estimator function by name, and verify that it has the * correct signature and we have the permissions to attach it to an * operator. */ diff --git a/src/backend/utils/adt/multirangetypes.c b/src/backend/utils/adt/multirangetypes.c index 0b81649779..2583ddeedf 100644 --- a/src/backend/utils/adt/multirangetypes.c +++ b/src/backend/utils/adt/multirangetypes.c @@ -1417,7 +1417,7 @@ multirange_intersect_agg_transfn(PG_FUNCTION_ARGS) if (!type_is_multirange(mltrngtypoid)) ereport(ERROR, (errcode(ERRCODE_DATATYPE_MISMATCH), - errmsg("range_intersect_agg must be called with a multirange"))); + errmsg("multirange_intersect_agg must be called with a multirange"))); typcache = multirange_get_typcache(fcinfo, mltrngtypoid); commit 8247b4034ed4c68241be9fbdec249bc967ceafd4 Author: Justin Pryzby Date: Tue Apr 27 07:57:50 2021 -0500 Comment typos: extended stats a4d75c86b and 518442c7f diff --git a/src/backend/parser/parse_utilcmd.c b/src/backend/parser/parse_utilcmd.c index 9dd30370da..eb9e63f4a8 100644 --- a/src/backend/parser/parse_utilcmd.c +++ b/src/backend/parser/parse_utilcmd.c @@ -1943,7 +1943,7 @@ generateClonedExtStatsStmt(RangeVar *heapRel, Oid heapRelid, * simply append them after simple column references. * * XXX Some places during build/estimation treat expressions as if they - * are before atttibutes, but for the CREATE command that's entirely + * are before attributes, but for the CREATE command that's entirely * irrelevant. */ datum = SysCacheGetAttr(STATEXTOID, ht_stats, diff --git a/src/backend/statistics/extended_stats.c b/src/backend/statistics/extended_stats.c index 7e11cb9d5f..5e53783ea6 100644 --- a/src/backend/statistics/extended_stats.c +++ b/src/backend/statistics/extended_stats.c @@ -1796,7 +1796,7 @@ statext_mcv_clauselist_selectivity(PlannerInfo *root, List *clauses, int varReli continue; /* - * Now we know the clause is compatible (we have either atttnums + * Now we know the clause is compatible (we have either attnums * or expressions extracted from it), and was not estimated yet. */