From: | David Christensen <david(dot)christensen(at)crunchydata(dot)com> |
---|---|
To: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
Cc: | "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: DELETE CASCADE |
Date: | 2021-06-05 12:25:39 |
Message-ID: | 2493162B-45AE-4810-97A0-0A65F49FD41C@crunchydata.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
> On Jun 5, 2021, at 2:29 AM, Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> wrote:
>
> On 04.06.21 22:24, David Christensen wrote:
>> So what are the necessary and sufficient conditions to check at this point? The constraint already exists, so what permissions would we need to check against which table(s) in order to grant this action?
>
> I think you would need DELETE privilege on all affected tables.
So basically where we are dispatching to the CASCADE guts, first check session user’s DELETE permission and throw the normal permissions error if they can’t delete?
From | Date | Subject | |
---|---|---|---|
Next Message | vignesh C | 2021-06-05 13:32:28 | Re: Added schema level support for publication. |
Previous Message | Isaac Morland | 2021-06-05 12:24:39 | Re: DELETE CASCADE |