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 1ubKw1-00H53e-D7 for pgsql-docs@arkaria.postgresql.org; Mon, 14 Jul 2025 15:17:41 +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 1ubKvz-009F3e-Gl for pgsql-docs@arkaria.postgresql.org; Mon, 14 Jul 2025 15:17:40 +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 1ubKvz-009F1K-8c for pgsql-docs@lists.postgresql.org; Mon, 14 Jul 2025 15:17:39 +0000 Received: from sss.pgh.pa.us ([68.162.161.243]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1ubKvy-007Fuz-0d for pgsql-docs@lists.postgresql.org; Mon, 14 Jul 2025 15:17:39 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 56EFHYex685004; Mon, 14 Jul 2025 11:17:34 -0400 From: Tom Lane To: Laurenz Albe cc: "David G. Johnston" , petermittere@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: please define 'statement' in the glossary In-reply-to: References: <175223006802.3157505.14764328206246105568@wrigleys.postgresql.org> <15139c5d218754350e4870062f90ff0e85490290.camel@cybertec.at> <270191.1752420426@sss.pgh.pa.us> <097e693ea6cc3541cbcd72c915d7d492c26930c0.camel@cybertec.at> <456003.1752442676@sss.pgh.pa.us> <458204.1752443813@sss.pgh.pa.us> Comments: In-reply-to Laurenz Albe message dated "Mon, 14 Jul 2025 08:24:53 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-ID: <685002.1752506254.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Mon, 14 Jul 2025 11:17:34 -0400 Message-ID: <685003.1752506254@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Laurenz Albe writes: > On Sun, 2025-07-13 at 17:32 -0700, David G. Johnston wrote: >> We seldom if ever resort to including descriptions=C2=A0involving=C2=A0= the fe/be protocol >> in the SQL portion of the documentation - rightly considering (IMO) tho= se to be >> implementation details (e.g., we don't even directly mention simple pro= tocol in >> "psql -c" - though we do link to it under "multi-statement commands"). >> Is there no way to avoid that here? > Well, I would have gladly removed the parenthetical remark, thinking tha= t if > somebody needed to know precisely, she'd read up in the code. The point that I wanted to convey in this para is that statement_timestamp() advances when we receive a command from the client. I don't think that that concept is too deep for the average user, we just need to choose the right words to convey it. Sadly, "SQL statement" doesn't have the right connotations, since for example a command within a SQL-language function is surely a "SQL statement" for most purposes. We're stuck with the function name, but how can we explain it? I understand David's allergy to mentioning the wire protocol. Would "client message" be better than "protocol message"? I also still like "command message", even if we're avoiding the word "command" elsewhere in the para. regards, tom lane