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 1nU8lW-0002Or-7F for pgsql-docs@arkaria.postgresql.org; Tue, 15 Mar 2022 15:07:14 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1nU8lU-0004gN-3F for pgsql-docs@arkaria.postgresql.org; Tue, 15 Mar 2022 15:07:12 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nU8lT-0004em-23 for pgsql-docs@lists.postgresql.org; Tue, 15 Mar 2022 15:07:11 +0000 Received: from wout5-smtp.messagingengine.com ([64.147.123.21]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nU8lP-0006Vk-Ml for pgsql-docs@lists.postgresql.org; Tue, 15 Mar 2022 15:07:10 +0000 Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id C6AC73201DE8; Tue, 15 Mar 2022 11:07:03 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 15 Mar 2022 11:07:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm3; bh=9IeP2y+EoJF1h5h/vPZUAZ8UU5GsXzUlQ85Nrk0PKlw=; b=TNZt3HrW wqkQsjKRXUN0gFH+IFj8Gl5qXKtQxbR6RdnYTTqBGl78i9m99gjX63KhGduK9h9Z AMe3T+WG0NAc/YoexAlHwvx42CQ4e6mNfdFCeeToimUE1jvarpHcaZ0s01voxYZv FJNA+EQRC0Z+LKg+xSQI72YfUan86H3AKlnG/KBesWmUaO42FdZKYkxM/RY2InMG bfWtF62qDDOprHO2E+0uCKQv9n5UGiT4fg8Lr8Gq4JgbxL+eLTZvvcN57U096Bno w1K7xHfAan/GmWYppJJQUD0ZvAQP0EDzoySmiLFVWfA6lmA5KDIVh4bZWRuSA1l1 hN31xLdTYm9TRQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrudeftddgjedvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeelvdfgffevvdeiueekkeejvddtfeetueeijeettdfgheel feeifeeuteeludevueenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 15 Mar 2022 11:07:02 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 81A712A6040; Tue, 15 Mar 2022 12:06:57 -0300 (-03) Date: Tue, 15 Mar 2022 16:06:57 +0100 From: Alvaro Herrera To: Florin Irion Cc: pgsql-docs@lists.postgresql.org Subject: Re: pg_dump shared locks documentation Message-ID: <202203151506.55cjea5lmp2l@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Mar-15, Florin Irion wrote: > In the `pg_dump` documentation we talk about "shared locks", but IIUC, > we actually take `AccessShareLock`s. This might be misunderstood with > the `ShareLock`. This might be a bit excessive to have in the main text. What about adding a footnote to point out the exact lock level that is meant, with a link to the server doc page that explains each lock level? Something like this: > Requesting exclusive locks on database objects while running a parallel dump could > cause the dump to fail. The reason is that the pg_dump leader process > - requests shared locks on the objects that the worker processes are going to dump later > + requests shared locksThe precise lock level used is ACCESS SHARE. > + See for more information. on the objects that the worker processes are > going to dump later ... > @@ -870,7 +870,7 @@ PostgreSQL documentation > > > > - Do not wait forever to acquire shared table locks at the beginning of Same here. -- Álvaro Herrera