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 1mbnEY-00051n-AL for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Oct 2021 17:12:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mbnE0-0003qE-95 for pgsql-hackers@arkaria.postgresql.org; Sat, 16 Oct 2021 17:12:00 +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 1mbnDz-0003q4-Mv for pgsql-hackers@lists.postgresql.org; Sat, 16 Oct 2021 17:12:00 +0000 Received: from resdmta-ch2-01v.sys.comcast.net ([2001:558:fe21:29:69:252:207:81]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mbnDv-00024s-US for pgsql-hackers@lists.postgresql.org; Sat, 16 Oct 2021 17:11:58 +0000 Received: from resqmta-ch2-01v.sys.comcast.net ([69.252.207.33]) by resdmta-ch2-01v.sys.comcast.net with ESMTP id bn9EmB0XETKfNbnDqmW7cC; Sat, 16 Oct 2021 17:11:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1634404310; bh=a0auDWuPgc5MAA5AufcFeHjDpv9QblRDoVvLlppQuVo=; h=Received:Received:Received:Received:Date:From:To:Subject: Message-ID:MIME-Version:Content-Type; b=fvCoS985UlaYI5fHkOXcGefd7Oorpmv4X5zoVWOrnK/rbWErCcx/08sZM95P1kaBL 6sDKbF9aMD/wGRjucJ+QMdcZt6oNVnc4mePKloZaFJDBLZob1soCND9WBk5jmzswoI 1ZaMn8/FsDeK1O8BQeFjChA1JhNp4AO6GlIAPx2OpSKmxsYQo+QmLHSIbnvU1kS1fy yfYj8dRtfU7rsZvqWqZ85iP70dRQIVO9K51KAjodJ5Wk6lIU4E2djir4PJNqVUez7e A4NueC4AA2BCErGG97vpUuX9pz7rEEfh42KXz9dTkrbG67U1tKRkMKQHwIppZiAcp+ sOpT2RRnjWNWQ== Received: from resomta-ch2-07v.sys.comcast.net ([69.252.207.103]) by resqmta-ch2-01v.sys.comcast.net with ESMTP id bmtFmHKjDfFsMbnDqmXnQq; Sat, 16 Oct 2021 17:11:50 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1634404310; bh=a0auDWuPgc5MAA5AufcFeHjDpv9QblRDoVvLlppQuVo=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=fpm7d7Z9TZBjVP9Q50fC+atY6vezys+oAGo4sjb9PLnt9nuHpt3RyVq6UoUMb8gyY Zi0EHBPCjVxdLugI7IE3fLW3iBSkrmj8T4+Zmiwj9zyTH5JzeYE/E2tLJx8eCrNZ5z HGWU+EMBVOaFD1OpCmXygDhi9BGo2pCuaISHjd6tnhIKuhptPKt83/oC1f3HR/NlUj GGcP13QiDkDUDU2OrSlzFTJktoAFVs1qJv9QLvJ95792wh3a/YFTESXKyk0KNqm8xw p72HRxZidPCHofmKxIIK7wPOvyClHCtbio62ra/yfxIXprcaa+YgU5A58Uqn3HJan0 mxjQHjZZ1WaAQ== Received: from shrew ([66.30.144.167]) by resomta-ch2-07v.sys.comcast.net with ESMTPA id bnDpmVSCcL8bRbnDqmjJTV; Sat, 16 Oct 2021 17:11:50 +0000 X-Xfinity-VAAS: gggruggvucftvghtrhhoucdtuddrgedvtddrvdduiedguddthecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucevohhmtggrshhtqdftvghsihdpqfgfvfdppffquffrtefokffrnecuuegrihhlohhuthemuceftddunecunecujfgurhepfffhvffukfhfgggtuggjfgesthdtredttdervdenucfhrhhomheprhhirhcuoehrihhrrghnshestghomhgtrghsthdrnhgvtheqnecuggftrfgrthhtvghrnhepudfgvdffjedtkefhgeelueejkefhieeghfefueeguefgveejuedthfevgeffgffhnecukfhppeeiiedrfedtrddugeegrdduieejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehhvghlohepshhhrhgvfidpihhnvghtpeeiiedrfedtrddugeegrdduieejpdhmrghilhhfrhhomheprhhirhgrnhhssegtohhmtggrshhtrdhnvghtpdhrtghpthhtohepphhgshhqlhdqhhgrtghkvghrsheslhhishhtshdrphhoshhtghhrvghsqhhlrdhorhhg X-Xfinity-VMeta: sc=0.00;st=legit Received: from rir by shrew with local (Exim 4.92) (envelope-from ) id 1mbnDp-00023t-4Z for pgsql-hackers@lists.postgresql.org; Sat, 16 Oct 2021 13:11:49 -0400 Date: Sat, 16 Oct 2021 13:11:49 -0400 From: rir To: pgsql-hackers@lists.postgresql.org Subject: Re: Trivial doc patch Message-ID: <20211016171149.yaouvlw5kvux6dvk@localhost> References: <20211015171314.p7v4vygabwhh7ihc@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On Sat, Oct 16, 2021 at 11:14:46AM +0900, Michael Paquier wrote: > On Fri, Oct 15, 2021 at 01:13:14PM -0400, rir wrote: > > This removes the outer square brackets in the create_database.sgml > > file's synopsis. In the command sysopses, this is the only case > > where an optional group contains only optional groups. > > > > CREATE DATABASE name > > - [ [ WITH ] [ OWNER [=] user_name ] > > + [ WITH ] [ OWNER [=] user_name ] > > [...] > > - [ IS_TEMPLATE [=] istemplate ] ] > > + [ IS_TEMPLATE [=] istemplate ] > > > > > > You are not wrong, and the existing doc is not wrong either. I tend > to prefer the existing style, though, as it insists on the options > as being a single group, with or without the keyword WITH. Michael, perhaps I mistake you; it seems you would like it better with the extra '[' before OWNER. That would more accurately point up CREATE DATABASE name WITH; Either way, my argument would have the basis. In what sense are the options a single group? That they all might follow the 'WITH' is expressed without the duplicated brackets. That the extra braces promote readability relies on an assumption or knowledge of the command. Given that 'optional, optional' has no independent meaning from 'optional'; it requires one to scan the entire set looking for the non-optional embedded in the option. So no gain. Rob