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 1ubYKy-002Ewb-UU for pgsql-docs@arkaria.postgresql.org; Tue, 15 Jul 2025 05:36:21 +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 1ubYKx-00H7Md-0C for pgsql-docs@arkaria.postgresql.org; Tue, 15 Jul 2025 05:36:19 +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 1ubYKw-00H7MV-Nr for pgsql-docs@lists.postgresql.org; Tue, 15 Jul 2025 05:36:19 +0000 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1ubYKu-007M4B-28 for pgsql-docs@lists.postgresql.org; Tue, 15 Jul 2025 05:36:18 +0000 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-3a4fd1ba177so3283172f8f.0 for ; Mon, 14 Jul 2025 22:36:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cybertec.at; s=google; t=1752557775; x=1753162575; darn=lists.postgresql.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=5tck6xKX+QlRqSh3lFNbn9axXXcEtnO+WFwechNd6UA=; b=CAtSv9TSJrU2VWVAcKkxpfbHuXpjKT03PJGUgNcOZ+YXTH3mmbVoyLFCo1F8jW4gVS YjTIpVS3HI8dIhi2Hm/+GSzuNb/aC8HHN/hgmVy6KnOAvlHXJl9fn9uHouq7rjEZpG9x NsxBVj+EIcj8Y6q/hX6E7+6lX5pvrvEXTm8nQSngR20rSjdfaTj8mMBWHNpwqkgz9jME OsbcqaCeBrSkCMllq6uTIDoClLCLKEUGC0JBlAJF5HBnSCzndUyUlIDIe9dMpEIj27+l DCwBcSThpb8ors3jOkwYVt9035LoqOopEg/8bo4onV1Z0Bq7JFoaflyIJ3cceUIc0xGh 3FKw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752557775; x=1753162575; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=5tck6xKX+QlRqSh3lFNbn9axXXcEtnO+WFwechNd6UA=; b=sFy1GXE2ytU13+zbN4h19lRozs2PyTHhYbG4y7ldkFk0Azs/fwqFz4JSRt1pFOBYl/ cItGbvtNgo5W9Mi+/fPKCDejOhnIwhHxLF/NGGfFQEtuRrFtKwlV3mnaneuT3BKx5JZQ VXzZMPQrisNzDj6W9J8k7b8iAbyBgDGog2DRM7BVFGdVAaVQdFtJzk41pjEP6lIlbhC9 DEAaNHheW5+pHTlUjojcjX+AdbJtff8V4mi69p3ZeypZo74AJ1UCEvLapozd+MU2kh4A gBVs9CGm0qHCfVzlkXBSOE9pSf2HJG5Pa4jAtyAOptcwEj/PHYLreysGU2zS5VhcYoxd evLw== X-Forwarded-Encrypted: i=1; AJvYcCXw4ymYA7Xtj4lQQDYxxP6IoXeY+nlh9y1NKSuwSgc7QPTGPo4GN6MCDPJtTgc6/OlJhdk6cOgrjb/m@lists.postgresql.org X-Gm-Message-State: AOJu0Yy3nFXMps1JoVjrKs0Q91Cnhwg9KrH4KCi9S/rLfMdBk4y0SekX Mcvt1hBmUzzEuKc/KxrBbWgBK1u3LtOOMV9eNEABV4Jh9JIlSX9lg52D2TC0D53nMx4= X-Gm-Gg: ASbGncuFKMNU6c16T6ARHx652NdjWFQXDUBYqE5JzYeJsDEHh+LcRL1fgycXPuzZFrO 6pziQMPY8jXbjmudodpcEGNAJikomFP9ml9srMmmFEOwpwJKDdOwhQeauTWMJlk09i2ljZRVmWt ug8sGKeaKTbm43LCOHtnrTgIzv0JLzCIq6kLaFFB6aZZqkRrLF8iIXVw2BZTUUOVxmA0DaYVV3C CeVYTy0emzZKALI/jUKGx39/GIRkTVdTvO0gPOK8fAc1gsnO9O7yjJ4255xfwKd09CII5D7YO3t 4JTW9AD7cksNh+GuD04C+9lQ8ugBqgkJiG6fj4rwzuAnRutr5TPEk9qirBBQcuxb4hcNmAb7OZU S1ZMQy17RhuI6YVH8RoxfElM2LdoBXShoPbCUNX4zYVaGYAaGCS8TwkEGeh6fhts= X-Google-Smtp-Source: AGHT+IGgp/um6z9Ie4i7bRH7o/fZ+mqh+wEd7o/9vgKCj4u+f4eRI9OfumsvpP5vBfI7o5HfYg8ygQ== X-Received: by 2002:a5d:64e3:0:b0:3a4:eb7a:2ccb with SMTP id ffacd0b85a97d-3b60953af23mr1463819f8f.16.1752557774611; Mon, 14 Jul 2025 22:36:14 -0700 (PDT) Received: from laurenz.albe-K4N0CV00F97414D ([2001:871:260:6670:8653:2e94:b4f9:98f9]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3b5e8e14d12sm14283557f8f.70.2025.07.14.22.36.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Jul 2025 22:36:14 -0700 (PDT) Message-ID: <52a74da36f9c7601e944dc5ba9648368816f22ee.camel@cybertec.at> Subject: Re: please define 'statement' in the glossary From: Laurenz Albe To: Tom Lane , "David G. Johnston" Cc: petermittere@gmail.com, pgsql-docs@lists.postgresql.org Date: Tue, 15 Jul 2025 07:36:13 +0200 In-Reply-To: <697664.1752512964@sss.pgh.pa.us> 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> <685003.1752506254@sss.pgh.pa.us> <690858.1752509326@sss.pgh.pa.us> <697664.1752512964@sss.pgh.pa.us> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.56.2 (3.56.2-1.fc42) MIME-Version: 1.0 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Mon, 2025-07-14 at 13:09 -0400, Tom Lane wrote: > "David G. Johnston" writes: > > Ok. That explains why "statement_timestamp() and transaction_timestamp= () > > return the same value during the first command of a transaction," isn't > > just stating the obvious. transaction_timestamp() literally returns th= e > > value statement_timestamp(). >=20 > Right. I'm tempted to be more explicit about that, along the lines of >=20 > statement_timestamp() and transaction= _timestamp() > - return the same value during the first statement of a transaction, b= ut might > - differ during subsequent statements. > + return the same value during the first statement of a transaction, > + because the transaction timestamp is set by copying the statement > + timestamp when a new transaction starts. >=20 > I didn't include that change below though; perhaps it has too much > whiff of implementation detail. >=20 > > I'm fine with this entire section assuming/stating that extended protoc= ol > > is in effect and that 53.2.2.1 explains how these behave when executing= a > > multi-statement simple protocol "script". >=20 > It's incorrect to claim that this only applies to extended protocol, > and besides I thought you didn't want to mention protocol details > here. I can't argue with documenting it in the protocol chapter > though. So about like this? +1 This thread doesn't look like we're going to find a wording that will make everyone happy, but I believe that this patch is a clear improvement. Quite contrary to David, I would have liked the word "protocol" with the message, because it gives me personally the right idea, but I am fine with "message" alone. After all, a message in PostgreSQL jargon is a protocol message. Yours, Laurenz Albe