From: Tom Lane <tgl@sss.pgh.pa.us>
To: Vano Beridze <vanuatoo@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: update schema table permission denied
Date: Fri, 02 Feb 2024 17:22:28 -0500
Message-ID: <3308786.1706912548@sss.pgh.pa.us> (raw)
In-Reply-To: <CANmF5MA9mS-d5=nBH1a4REZ7Rkt2-wmO8o+miNSLCD=JpZuZvg@mail.gmail.com>
References: <CANmF5MA9mS-d5=nBH1a4REZ7Rkt2-wmO8o+miNSLCD=JpZuZvg@mail.gmail.com>
Vano Beridze <vanuatoo@gmail.com> writes:
> I granted insert and update permission on the table outbox_event to the
> user "app"
> When the following command is run with the user app
> update adm.outbox_event set .. where id = ..
> Postgresql gives the notification:
> ERROR: permission denied for table outbox_event
You need SELECT privilege too in order to read the "id" column.
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: tgl@sss.pgh.pa.us, vanuatoo@gmail.com
Subject: Re: update schema table permission denied
In-Reply-To: <3308786.1706912548@sss.pgh.pa.us>
References: <CANmF5MA9mS-d5=nBH1a4REZ7Rkt2-wmO8o+miNSLCD=JpZuZvg@mail.gmail.com> <3308786.1706912548@sss.pgh.pa.us>
* 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