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 1lo6kg-0007eO-VK for pgsql-docs@arkaria.postgresql.org; Tue, 01 Jun 2021 15:56:22 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1lo6ke-00050E-3U for pgsql-docs@arkaria.postgresql.org; Tue, 01 Jun 2021 15:56:20 +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 1lo6kd-000504-9l for pgsql-docs@lists.postgresql.org; Tue, 01 Jun 2021 15:56:19 +0000 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lo6ka-0006UG-3a for pgsql-docs@postgresql.org; Tue, 01 Jun 2021 15:56:18 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 525FBFD7; Tue, 1 Jun 2021 11:56:13 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Tue, 01 Jun 2021 11:56:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm2; bh=FIsUqj144e8kCNLx7dhxGBjiqD5Ndhz7RCgVKO7mmjk=; b=nxStBY9m iZwuX+jPWvT6Qs8UhuFXQxH0XbZc5vovKlM2vommUvXjltvJCxS7UjHYjd7XdXCh QmNH28COvmaWymAj7wPn1j6zOIdGKeua37uuJELx9AAlqrm967UgRQMoI3oddnti ydXb4pfiy2TAE8gcmWmUJyd5kIvgHWaicp5shBOlZNLQ2qp0/wo55SEEiYA679JX toq8VqLYTq+7ELlkiTr2B9SKDqFiDuYk5q5+z8AXKv7DzDT3mz7qFbHmEL/mnLLS /9Pg4IpoZtLoktqImNuYTxL2cnQUGd8XRYNeHE44fNhRHOG7ZwArrn4vYIHyBHgv XmG7MpqQAajvzg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdelhedgleeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepfffhvffukfggtggugfgjsehtkeertddttddunecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpeeggeevveffveejffdutefhvddtgeeghffhgfeuhfefjeei gfevhfefleevtdduteenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrih hlfhhrohhmpegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhg X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 1 Jun 2021 11:56:12 -0400 (EDT) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id 3F6682A0BBB; Tue, 1 Jun 2021 11:56:09 -0400 (-04) Date: Tue, 1 Jun 2021 11:56:09 -0400 From: Alvaro Herrera To: Tom Lane Cc: Peter Eisentraut , pgsql-docs Subject: Re: Simplify COMMENT and SECURITY LABEL documentation Message-ID: <202106011556.au3hmtylr7cn@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <2762111.1622555562@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2021-Jun-01, Tom Lane wrote: > Peter Eisentraut writes: > > ... I wonder if it would be more practical to just write: > > > The name of the object to be commented. Names of objects that live > > in schemas (tables, functions, etc.) can be schema-qualified. > > +1 for the concept, but I feel that "live in" is a bit too informal > for this context. I'm too caffeine-deprived to instantly come up > with le mot juste; but perhaps "exist within" would be an improvement? The glossary uses "reside in". Schema A schema is a namespace for SQL objects, which all reside in the same database. Each SQL object must reside in exactly one schema. I suppose that we should either use the same term that the glossary uses, or alternatively fix the glossary to use whatever term we decide to use here. I do notice now that I used the term "belong to" elsewhere in the glossary. That could use some cleanup. SQL object Any object that can be created with a CREATE command. Most objects are specific to one database, and are commonly known as local objects. Most local objects belong to a specific schema in their containing database, such as relations (all types), routines (all types), data types, etc. The names of such objects of the same type in the same schema are enforced to be unique. There also exist local objects that do not belong to schemas; some examples are extensions, data type casts, and foreign data wrappers. The names of such objects of the same type are enforced to be unique within the database. -- Álvaro Herrera 39°49'30"S 73°17'W "No renuncies a nada. No te aferres a nada."