Classify DROP operations by whether or not they are user-initiated.
Robert Haas <rhaas@postgresql.org>
Classify DROP operations by whether or not they are user-initiated. This doesn't do anything useful just yet, but is intended as supporting infrastructure for allowing sepgsql to sensibly check DROP permissions. KaiGai Kohei and Robert Haas
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/catalog/aclchk.c | modified | +1 −1 |
| src/backend/catalog/dependency.c | modified | +22 −7 |
| src/backend/catalog/heap.c | modified | +3 −2 |
| src/backend/catalog/pg_shdepend.c | modified | +1 −1 |
| src/backend/commands/cluster.c | modified | +1 −1 |
| src/backend/commands/dropcmds.c | modified | +1 −1 |
| src/backend/commands/foreigncmds.c | modified | +1 −1 |
| src/backend/commands/opclasscmds.c | modified | +2 −2 |
| src/backend/commands/tablecmds.c | modified | +21 −8 |
| src/backend/commands/typecmds.c | modified | +1 −1 |
| src/backend/postmaster/autovacuum.c | modified | +1 −1 |
| src/backend/storage/large_object/inv_api.c | modified | +1 −1 |
| src/include/catalog/dependency.h | modified | +4 −2 |
| src/include/catalog/heap.h | modified | +1 −1 |