pg.ddx.io  pgsql-hackers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Justin Pryzby <pryzby@telsasoft.com>
To: Pavel Luzanov <p.luzanov@postgrespro.ru>
Cc: Nathan Bossart <nathandbossart@gmail.com>
Cc: pgsql-hackers@postgresql.org
Subject: Re: add \dpS to psql
Date: Wed, 7 Dec 2022 20:39:30 -0600
Message-ID: <20221208023929.GB27893@telsasoft.com> (raw)
In-Reply-To: <661148f4-c7f1-dec1-2bc8-29f3bd58e242@postgrespro.ru>
References: <20221206193606.GB3078082@nathanxps13>
	<661148f4-c7f1-dec1-2bc8-29f3bd58e242@postgrespro.ru>

On Wed, Dec 07, 2022 at 10:48:49AM +0300, Pavel Luzanov wrote:
> Furthermore. The VACUUM privilege allows you to also execute VACUUM FULL.
> VACUUM and VACUUM FULL are commands with similar names, but work completely
> differently.
> It may be worth clarifying on this page:
> https://www.postgresql.org/docs/devel/ddl-priv.html
> 
> Something like: Allows VACUUM on a relation, including VACUUM FULL.

Since (as you said) they work completely differently, I think it'd be
more useful if vacuum_full were a separate privilege, rather than being
included in vacuum.  And cluster could be allowed whenever vacuum_full
is allowed.

> There is a very similar command to VACUUM FULL with a different name -
> CLUSTER.  The VACUUM privilege does not apply to the CLUSTER command.
> This is probably correct.

I think if vacuum privilege allows vacuum full, then it ought to also
allow cluster.  But I suggest that it'd be even better if it doesn't
allow either, and there was a separate privilege for those.

Disclaimer: I have not been following these threads.

-- 
Justin





view thread (26+ messages)  latest in thread

Message-ID: <20221208023929.GB27893@telsasoft.com>
Permalink:  ../20221208023929.GB27893@telsasoft.com/
Also on:    postgresql.org/message-id/20221208023929.GB27893@telsasoft.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-hackers@postgresql.org
  Cc: pryzby@telsasoft.com, p.luzanov@postgrespro.ru, nathandbossart@gmail.com
  Subject: Re: add \dpS to psql
  In-Reply-To: <20221208023929.GB27893@telsasoft.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox