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 1r0plA-00846c-4R for pgsql-docs@arkaria.postgresql.org; Wed, 08 Nov 2023 21:06:48 +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 1r0pl8-007na9-JW for pgsql-docs@arkaria.postgresql.org; Wed, 08 Nov 2023 21:06:46 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0pl8-007nZv-C0 for pgsql-docs@lists.postgresql.org; Wed, 08 Nov 2023 21:06:46 +0000 Received: from momjian.us ([72.94.173.45]) by magus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1r0pl5-005Q2U-Nn for pgsql-docs@lists.postgresql.org; Wed, 08 Nov 2023 21:06:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=momjian.us; s=2023062407; h=In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-ID:Content-Description; bh=s/y+Bcn2w9UWlbwLC/9wlcYiACeCGrc3kYZvu9NzXWE=; b=CqsDWZ2/mewbMMYTpf01S5kGAj HgZ3WV+KeGgxCzUenxkxWURb/+zB0Kbd+kXTBZbmNqBsh89zufy93p8nGSR2hQh4A5PeyMPbA+Agd NQla62BtODskOrLWfmcXRPppJtu9BscJfKrlwgNL9FqPB1QnVu2Kg/ZCfDnwt/fwVVFhwoEpR3rtE IqYzG5neyKUzi6hzPgA7qe2RhiPlFMljt8ZsCmY3f6N+qgPoJV2wTjppawcuavHM33L18J5eyiej8 inc0LOxrtPp8+5GobBjtJ6jAJRMAKiQ+mVK+A5FeupAutnsn/55ef5OkXl1ED4m2FMwXvg0KycZ4n mqOXKk/g==; Received: from bruce by momjian.us with local (Exim 4.96) (envelope-from ) id 1r0pl4-00Gm6C-1R; Wed, 08 Nov 2023 16:06:42 -0500 Date: Wed, 8 Nov 2023 16:06:42 -0500 From: Bruce Momjian To: Aramaki Zyake Cc: Tom Lane , "pgsql-docs@lists.postgresql.org" Subject: Re: Required locks for ANALYZE Message-ID: References: <156628723253.1296.7377373462603881976@wrigleys.postgresql.org> <6129.1566310344@sss.pgh.pa.us> <5d91b2f1.1c69fb81.bf75c.2036@mx.google.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="BuovsKgNDjBW/RYv" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5d91b2f1.1c69fb81.bf75c.2036@mx.google.com> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk --BuovsKgNDjBW/RYv Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On Mon, Sep 30, 2019 at 04:46:56PM +0900, Aramaki Zyake wrote: > Hi, > > I’m terribly sorry for the delay of response. > > > > >This does not really seem like an improvement.  The second formulation is > > >pedantically correct, but also unintelligible. > > > > > > Maybe we could make it say "run in parallel with non-DDL activity" ? > > > > I completely agree with you, therefore, I amended it as follows. > > ---- > > ANALYZE requires only a read lock on the target table, so it can run in > > parallel with non-DDL activity on the table. I know this report is four years old, but attached patch applied to master. -- Bruce Momjian https://momjian.us EDB https://enterprisedb.com Only you can decide what is important to you. --BuovsKgNDjBW/RYv Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="analyze.diff" diff --git a/doc/src/sgml/ref/analyze.sgml b/doc/src/sgml/ref/analyze.sgml index 4c79a01eb6..6ed8e7241b 100644 --- a/doc/src/sgml/ref/analyze.sgml +++ b/doc/src/sgml/ref/analyze.sgml @@ -208,7 +208,7 @@ ANALYZE [ ( option [, ...] ) ] [ ANALYZE requires only a read lock on the target table, so it can run in - parallel with other activity on the table. + parallel with other non-DDL activity on the table. --BuovsKgNDjBW/RYv--