From: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Move privilege check to the right place |
Date: | 2023-09-07 11:01:29 |
Message-ID: | E1qeClN-002nsn-Gt@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Move privilege check to the right place
Now that ATExecDropConstraint doesn't recurse anymore, so it's wrong to
test privileges "during recursion" there. Move the check to
dropconstraint_internal, which is the place where recursion occurs.
In passing, remove now-useless 'recursing' argument to
ATExecDropConstraint.
Discussion: https://postgr.es/m/202309051744.y4mndw5gwzhh@alvherre.pgsql
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/ac22a9545ca906e70a819b54e76de38817c93aaf
Modified Files
--------------
src/backend/commands/tablecmds.c | 18 ++++++++----------
src/test/regress/expected/inherit.out | 21 +++++++++++++++++++++
src/test/regress/sql/inherit.sql | 21 +++++++++++++++++++++
3 files changed, 50 insertions(+), 10 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2023-09-07 18:41:45 | pgsql: Reorder tests in get_cheapest_path_for_pathkeys(). |
Previous Message | Alvaro Herrera | 2023-09-07 09:37:47 | pgsql: Update information_schema definition for not-null constraints |