From: Jens Tröger <jens.troeger@light-speed.de>
To: Laurenz Albe <laurenz.albe@cybertec.at>
Cc: pgsql-docs@lists.postgresql.org
Subject: Re: LOCK docs and permissions
Date: Fri, 5 Apr 2024 14:12:37 +0200
Message-ID: <Zg_qtRzgiKJVN3sJ@light-speed.de> (raw)
In-Reply-To: <c3f865dad2389ddb189777d421a01951f58a23a8.camel@cybertec.at>
References: <171231274723.679.12709350477352678592@wrigleys.postgresql.org>
<c3f865dad2389ddb189777d421a01951f58a23a8.camel@cybertec.at>
Thank you, Laurenz, I missed that completely 🤦🏻♂️
Jens
> https://www.postgresql.org/docs/current/sql-lock.html#id-1.9.3.155.7
>
> "To lock a table, the user must have the right privilege for the specified
> lockmode, or be the table's owner or a superuser. If the user has UPDATE,
> DELETE, or TRUNCATE privileges on the table, any lockmode is permitted.
> If the user has INSERT privileges on the table, ROW EXCLUSIVE MODE
> (or a less-conflicting mode as described in Section 13.3) is permitted.
> If a user has SELECT privileges on the table, ACCESS SHARE MODE is permitted."
>
> Yours,
> Laurenz Albe
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-docs@postgresql.org
Cc: jens.troeger@light-speed.de, laurenz.albe@cybertec.at, pgsql-docs@lists.postgresql.org
Subject: Re: LOCK docs and permissions
In-Reply-To: <Zg_qtRzgiKJVN3sJ@light-speed.de>
* 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