postgresql/src/backend/catalog
Joe Conway f7a2002e82 Add object TRUNCATE hook
All operations with acl permissions checks should have a corresponding hook
so that, for example, mandatory access control (MAC) may be enforced by an
extension. The command TRUNCATE is missing this hook, so add it. Patch by
Yuli Khodorkovskiy with some editorialization by me. Based on the discussion
not back-patched. A separate patch will exercise the hook in the sepgsql
extension.

Author: Yuli Khodorkovskiy
Reviewed-by: Joe Conway
Discussion: https://postgr.es/m/CAFL5wJcomybj1Xdw7qWmPJRpGuFukKgNrDb6uVBaCMgYS9dkaA%40mail.gmail.com
2019-11-23 10:39:20 -05:00
..
.gitignore Replace our traditional initial-catalog-data format with a better design. 2018-04-08 13:17:27 -04:00
aclchk.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
catalog.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
Catalog.pm Create a script that can renumber manually-assigned OIDs. 2019-03-12 10:50:48 -04:00
dependency.c Include TableFunc references when computing expression dependencies. 2019-11-13 12:11:49 -05:00
genbki.pl Remove configure --disable-float4-byval 2019-11-21 18:29:21 +01:00
heap.c Install dependencies to prevent dropping partition key columns. 2019-07-22 14:55:40 -04:00
index.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
indexing.c Fix unused variable compiler warning in !debug builds. 2019-04-30 17:45:32 -07:00
information_schema.sql Remove obsolete information schema tables 2019-10-25 21:37:14 +02:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
namespace.c Require the schema qualification in pg_temp.type_name(arg). 2019-08-05 07:48:41 -07:00
objectaccess.c Add object TRUNCATE hook 2019-11-23 10:39:20 -05:00
objectaddress.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
partition.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
pg_aggregate.c Message style fixes 2019-09-23 13:38:39 +02:00
pg_collation.c Collations with nondeterministic comparison 2019-03-22 12:12:43 +01:00
pg_constraint.c Fix inconsistencies and typos in the tree, take 10 2019-08-13 13:53:41 +09:00
pg_conversion.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
pg_db_role_setting.c tableam: Add and use scan APIs. 2019-03-11 12:46:41 -07:00
pg_depend.c Make identity sequence management more robust 2019-07-22 12:07:10 +02:00
pg_enum.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
pg_inherits.c Represent Lists as expansible arrays, not chains of cons-cells. 2019-07-15 13:41:58 -04:00
pg_largeobject.c Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
pg_namespace.c Replace uses of heap_open et al with the corresponding table_* function. 2019-01-21 10:51:37 -08:00
pg_operator.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00
pg_proc.c Represent Lists as expansible arrays, not chains of cons-cells. 2019-07-15 13:41:58 -04:00
pg_publication.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
pg_range.c Remove superfluous tqual.h includes. 2019-01-21 12:15:02 -08:00
pg_shdepend.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
pg_subscription.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
pg_type.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
sql_feature_packages.txt Remove obsolete information schema tables 2019-10-25 21:37:14 +02:00
sql_features.txt Remove obsolete information schema tables 2019-10-25 21:37:14 +02:00
storage.c Make the order of the header file includes consistent in backend modules. 2019-11-12 08:30:16 +05:30
system_views.sql Track statistics for spilling of changes from ReorderBuffer. 2019-11-21 08:06:51 +05:30
toasting.c Phase 2 pgindent run for v12. 2019-05-22 13:04:48 -04:00