Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1jCfXJ-0006Wv-Pt for pgsql-docs@arkaria.postgresql.org; Fri, 13 Mar 2020 08:19:18 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1jCfXH-0003x3-DZ for pgsql-docs@arkaria.postgresql.org; Fri, 13 Mar 2020 08:19:15 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1jCenw-0000JQ-Dg for pgsql-docs@lists.postgresql.org; Fri, 13 Mar 2020 07:32:24 +0000 Received: from mx.kolabnow.com ([95.128.36.41]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jCent-0006bO-61 for pgsql-docs@lists.postgresql.org; Fri, 13 Mar 2020 07:32:23 +0000 Received: from localhost (unknown [127.0.0.1]) by ext-mx-out003.mykolab.com (Postfix) with ESMTP id C539640CA1; Fri, 13 Mar 2020 08:32:18 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= message-id:references:in-reply-to:subject:subject:from:from:date :date:content-transfer-encoding:content-type:content-type :mime-version:received:received:received; s=dkim20160331; t= 1584084737; x=1585899138; bh=k3EGpOEnc4L2VwNCr6PR8XZn8y03ogKGBN2 kiVkrZV4=; b=wuEAuh+piQMCUNmqISSsSVzJdrSXCxhMs3d9zS7Ncnb/s4mJrdZ XWjwgiEFD6MJxNOJXwQd0BMtYrv6UGWqI252ic+F1mGkDemMYwYKR6JeQTf67gm9 gZ70KI27/487/sbS8e79arDsUv97Wt5GIF9yVXlJCPXSaMKXVJYu35pDyA0pSzJa QIdPRzvs4psVzzHsalWeyJ3huAs7Mp6i07et423jCJm7XmdR2G6pU8Cd0m7JGgRH fTz8vz2VyyxBp+a+fUZTh0XFzKgI+5Wxve2y67e3/nhrV7Y05PzLVmz4GU/ZyUB/ Cq1KUttNEWkfWOQfuxV8zRXuu0YUutiq3Y0Oh6/wSLqk8nay1OrVQAkOAegR+z9n 6Y7u3gNVoQDUEYSuAutr9Ccl+s8/mRiPQkGxt73rgGdJFJxABTAlbx8RfSvOX1fY AghQ9PP1PEEBMFOQxY+KVymbu/oWbGx0fduvGfF88mki01/SEoYNTph/ZzrClPzr 7vzkHml8eaH5kphXrDYMNdHEhaWB76StyWuJYSoU+y383SkX86p7ONdFKBrxfcNQ 8MVKvgbFRcVFVztzB8zEczLZ7+bkLDF3HTiKemw9CEwEB1hZlvMhgMy5fLJBIiOU PFU7l8EYHtxu2yu9kGdr3bFk5ep0JjJnAoctwYRXlia/Cx96ELi4h3SI= X-Virus-Scanned: amavisd-new at mykolab.com X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-10 required=5 tests=[BAYES_00=-1.9] autolearn=ham autolearn_force=no Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out003.mykolab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sWJbry2eoSuF; Fri, 13 Mar 2020 08:32:17 +0100 (CET) Received: from int-mx003.mykolab.com (unknown [10.9.13.3]) by ext-mx-out003.mykolab.com (Postfix) with ESMTPS id 28204403F5; Fri, 13 Mar 2020 08:32:16 +0100 (CET) Received: from int-subm001.mykolab.com (unknown [10.9.37.1]) by int-mx003.mykolab.com (Postfix) with ESMTPS id CDCD5ADE; Fri, 13 Mar 2020 08:32:16 +0100 (CET) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 13 Mar 2020 08:32:15 +0100 From: Silvan Jegen To: Bruce Momjian Cc: pgsql-docs@lists.postgresql.org Subject: Re: Move description of general lock behaviour out of the "13.3.1. Table-level Locks section" In-Reply-To: <20200312203420.GA2309@momjian.us> References: <158074944048.1095.4309647363871637715@wrigleys.postgresql.org> <20200312203420.GA2309@momjian.us> Message-ID: X-Sender: me@sillymon.ch List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Hi On 2020-03-12 21:34, Bruce Momjian wrote: > On Mon, Feb 3, 2020 at 05:04:00PM +0000, PG Doc comments form wrote: >> The following documentation comment has been logged on the website: >> >> Page: https://www.postgresql.org/docs/9.4/explicit-locking.html >> Description: >> >> Hi >> >> The "13.3.1. Table-level Locks" subsection mentions the following: >> "Once >> acquired, a lock is normally held till end of transaction." (maybe we >> should >> also squeeze a "...till the end of a transaction" in there) According >> to a > > Sorry for the delay in replying. Yes, this wording needs improvement, No problem! > which I have done in the attached patch. > >> helpful stranger on IRC, this behavior is also true for row-level >> locks. >> >> Since this sentence also applies to the row-level locks described in >> the >> following subsection 13.3.2 I think it would be more fitting to move >> the >> paragraph containing this sentence to the introduction of the topic in >> section "13.3. Explicit Locking". This would then read something like: > > Uh, we can't move that paragraph up because Page-Level Locks and > Advisory Locks aren't always released on transaction end or rollback. Ah, I didn't take that into account. > What I did do was to mention that row-level locks are released in a > similar way to table-level locks. > > Patch attached. The patch looks good to me, thanks! Cheers, Silvan