Dominique Devienne <ddevie...@gmail.com> writes: > On Thu, Jul 31, 2025 at 11:35 AM Guillaume Lelarge > <guillaume.lela...@dalibo.com> wrote: >> It doesn't lie. The role has DELETE privilege. I guess what it lacks is >> the SELECT privilege. If you do a "DELETE FROM ... WHERE ...", you need >> the SELECT privilege to perform the WHERE. Without "WHERE ...", it would >> work without the SELECT privilege.
> Right on the money! Merci Guillaume!!! --DD So the real problem here is that the "permission denied" error message doesn't tell you which permission you lack. I think we've had prior discussions about improving that, but it never got done. In some cases it's a bit complicated -- for example, here either whole-table SELECT or SELECT on the specific column would do. But even pointing you in the direction of "you need SELECT" would likely have led to the correct line of thought, so maybe giving 100% of the details isn't necessary. regards, tom lane