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 1rthrD-00Grps-Sy for pgsql-committers@arkaria.postgresql.org; Mon, 08 Apr 2024 05:47:52 +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 1rthrD-000txw-1r for pgsql-committers@arkaria.postgresql.org; Mon, 08 Apr 2024 05:47:51 +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.94.2) (envelope-from ) id 1rthrC-000txo-QW for pgsql-committers@lists.postgresql.org; Mon, 08 Apr 2024 05:47:50 +0000 Received: from mail-pj1-x1029.google.com ([2607:f8b0:4864:20::1029]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.94.2) (envelope-from ) id 1rthrA-001lqq-3H for pgsql-committers@lists.postgresql.org; Mon, 08 Apr 2024 05:47:49 +0000 Received: by mail-pj1-x1029.google.com with SMTP id 98e67ed59e1d1-29ddfada0d0so2856441a91.3 for ; Sun, 07 Apr 2024 22:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712555267; x=1713160067; darn=lists.postgresql.org; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:from:to:cc:subject :date:message-id:reply-to; bh=3KBk7/ERfrTVYaF+FftAID53bI3Fvvc5/3BQ5WaaAW8=; b=dZGccNBurJaZBS46DiD5PP71G7Qt48YVe5kzEZAKJEGDjsQnTMRaWKjKABvFuPh/s3 DyA7xG/m4RLUemYDURtBvWSPTD7mV4q5WoFhZlsXIyyuvbmPXxG+aKvaqAwWwyq++12V VjO5PCW5ro05h+DWp27qYILNylpVW+vjBLwp4Vd/ootaoIP+MxFuJxN1+eh4/2nVkXXo Yaiz1w2H5SMhUJSawfc6kkbJaBQA03rQRSkoKa+qwdkE9jz5Do1JN9Xbz9j1oIBe7enT 0RI9hShRHBtRHiVjVsNwkuIgszEUvvJ49kBBG54YhdmxS6PXO+PzBYnP1lonnytTxw84 sYuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712555267; x=1713160067; h=content-transfer-encoding:mime-version:user-agent:references :in-reply-to:from:subject:cc:to:message-id:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=3KBk7/ERfrTVYaF+FftAID53bI3Fvvc5/3BQ5WaaAW8=; b=rcI02LAgPBmA5hL6Qh19gp3OtQQWZZHvxYtVccO3XIU5XIzKi3amqq6MJ2Yte0AAWv tZBuYf1DMDmzi35zNBnOwKF+T383g7mNHLmLKXqq3mOSDikmSxiRIe3BDfImD7TdROCQ 3bA+jCDs7128KRyMMPGxq8nMppemmL6PyGa0e78aMVTPk4P1iGy6OeLWDo9R5BFJTbix yTman8JtMIgRm4CbT5Mr2CawEYQJzuKKQ9XeYvrtuGK8zH53nYRiu3ARXTnAOQ+nCk8/ 8xsVA8mIGfi3oNeA70Iw8W8wC0RgmNyma5W8S+qZd03BoQji4YZNed4FIA/QBNDsmCvt Bf7w== X-Gm-Message-State: AOJu0YwBQKkzVLqbQIu2rp205+PMwyZ/zPSfM3JxXjAtVsmQgT/dfhtE G8ypRUPky4H5/BM3Orf0z+j1cLbOX/xq04VgVVak8ymIAVeDSXH+ X-Google-Smtp-Source: AGHT+IHsfF3gegPyI2SjhFmuX+XJhdbgIkwEL6Hepw/10qNonwtwhAcKO6BY70LGlFAgif7uOhk95Q== X-Received: by 2002:a17:90a:4bc6:b0:2a2:7817:f591 with SMTP id u6-20020a17090a4bc600b002a27817f591mr5541649pjl.48.1712555266986; Sun, 07 Apr 2024 22:47:46 -0700 (PDT) Received: from localhost (KD036014041111.ppp-bb.dion.ne.jp. [36.14.41.111]) by smtp.gmail.com with ESMTPSA id 60-20020a17090a09c200b002a47e86fd5esm5304547pjo.4.2024.04.07.22.47.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Apr 2024 22:47:46 -0700 (PDT) Date: Mon, 08 Apr 2024 14:46:57 +0900 (JST) Message-Id: <20240408.144657.1746688590065601661.horikyota.ntt@gmail.com> To: akorotkov@postgresql.org Cc: pgsql-committers@lists.postgresql.org Subject: Re: pgsql: Transform OR clauses to ANY expression From: Kyotaro Horiguchi In-Reply-To: References: User-Agent: Mew version 6.8 on Emacs 27.2 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk At Sun, 07 Apr 2024 22:28:06 +0000, Alexander Korotkov wrote in > Transform OR clauses to ANY expression This commit introduces a message like this: > gettext_noop("Set the minimum length of the list of OR clauses to attempt the OR-to-ANY transformation."), Unlike the usual phrasing of similar messages in this context, which use the form "Sets the minimum length of...", this message uses an imperative form ("Set"). I believe it would be better to align the tone of this message with the others by changing "Set" to "Sets". regards. diff --git a/src/backend/utils/misc/guc_tables.c b/src/backend/utils/misc/guc_tables.c index 83e3a59d7e..a527ffe0b0 100644 --- a/src/backend/utils/misc/guc_tables.c +++ b/src/backend/utils/misc/guc_tables.c @@ -3670,7 +3670,7 @@ struct config_int ConfigureNamesInt[] = { {"or_to_any_transform_limit", PGC_USERSET, QUERY_TUNING_OTHER, - gettext_noop("Set the minimum length of the list of OR clauses to attempt the OR-to-ANY transformation."), + gettext_noop("Sets the minimum length of the list of OR clauses to attempt the OR-to-ANY transformation."), gettext_noop("Once the limit is reached, the planner will try to replace expression like " "'x=c1 OR x=c2 ..' to the expression 'x = ANY(ARRAY[c1,c2,..])'"), GUC_EXPLAIN -- Kyotaro Horiguchi NTT Open Source Software Center