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 1p3FBp-0006KE-9T for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Dec 2022 11:35:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1p3FBn-0006so-Oe for pgsql-hackers@arkaria.postgresql.org; Thu, 08 Dec 2022 11:35:43 +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 1p3FBn-0006nk-El for pgsql-hackers@lists.postgresql.org; Thu, 08 Dec 2022 11:35:43 +0000 Received: from wout4-smtp.messagingengine.com ([64.147.123.20]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p3FBk-0000PH-QA for pgsql-hackers@postgresql.org; Thu, 08 Dec 2022 11:35:43 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.west.internal (Postfix) with ESMTP id C99CD3200976; Thu, 8 Dec 2022 06:35:36 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 08 Dec 2022 06:35:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-transfer-encoding :content-type:date:date:feedback-id:feedback-id: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=fm2; t=1670499336; x=1670585736; bh=4 rDW/aQr3cCKuXPiRYA/sgFkEKsCIepOYFrwcUPzz8c=; b=BxGZ0wOfKlovQ6ouI Z/pKIwRMroMmsAd4IAMr9/6pD7p2PKRBbfPOrz5duDme8p9G08eG//4ZMHqXvr3J O7sH88b9K5PxO4TicLEIQH3EQhLRAAc3l5rsalC4T6mpPWefkL6lwWDT8hnPoV4T Xv2EuFPZ4Zw1SmB5gzIgsczWQwsdvYrvH6mXDvq5meRD/GFQGyjccPA3X+l5Nu8C V66ua9nANrD5i+7UTOAb5k8OIAy7OM86SQ2MX/FqS8u5jcZZq3qeg6FWHdyTpTIT v9NpmOB2Yw1WiZlXcRDDxOU+Oq+x6F7OkwSHaMKDMqEsjYIyGvcpf/p+wn0UEc4+ dTKMQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddtgddvlecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfggtggugfgjsehtkeertddttdejnecuhfhrohhmpeetlhhvrghr ohcujfgvrhhrvghrrgcuoegrlhhvhhgvrhhrvgesrghlvhhhrdhnohdqihhprdhorhhgqe enucggtffrrghtthgvrhhnpedvkedtffduffdtffffheffhfejjefhgfeiueeukeejkeff gfdufffhudffffeuveenucffohhmrghinhepvghnthgvrhhprhhishgvuggsrdgtohhmne cuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomheprghlvhhh vghrrhgvsegrlhhvhhdrnhhoqdhiphdrohhrgh X-ME-Proxy: Feedback-ID: ia2694551:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 8 Dec 2022 06:35:34 -0500 (EST) Received: by perhan.alvh.no-ip.org (Postfix, from userid 1000) id EE68CE98; Thu, 8 Dec 2022 12:35:28 +0100 (CET) Date: Thu, 8 Dec 2022 12:35:28 +0100 From: Alvaro Herrera To: Pavel Luzanov Cc: Isaac Morland , Tom Lane , Nathan Bossart , Justin Pryzby , pgsql-hackers@postgresql.org Subject: Re: add \dpS to psql Message-ID: <20221208113528.xfsa7c2f6bu7up3m@alvherre.pgsql> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1c031553-46d8-e1cd-4f64-caa349f111f9@postgrespro.ru> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk On 2022-Dec-08, Pavel Luzanov wrote: > For the complete picture, I tried to see what other actions with the table > could *potentially* be considered as maintenance. > Here is the list: > > - create|alter|drop on extended statistics objects > - alter table|index alter column set statistics > - alter table|index [re]set (storage_parameters) > - alter table|index set tablespace > - alter table alter column set storage|compression > - any actions with the TOAST table that can be performed separately from the > main table Well, I can't see that any of these is valuable to grant separately from the table's owner. The maintenance ones are the ones that are interesting to run from a database-owner perspective, but these ones do not seem to need that treatment. If you're extremely generous you could think that ALTER .. SET STORAGE would be reasonable to be run by the db-owner. However, that's not something you do on an ongoing basis -- you just do it once -- so it seems pointless. -- Álvaro Herrera Breisgau, Deutschland — https://www.EnterpriseDB.com/