1 /*-------------------------------------------------------------------------
4 * prototypes for policy.c.
7 * Portions Copyright (c) 1996-2022, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
10 * src/include/commands/policy.h
12 *-------------------------------------------------------------------------
18 #include "catalog/objectaddress.h"
19 #include "nodes/parsenodes.h"
20 #include "utils/relcache.h"
22 extern void RelationBuildRowSecurity(Relation relation
);
24 extern void RemovePolicyById(Oid policy_id
);
26 extern bool RemoveRoleFromObjectPolicy(Oid roleid
, Oid classid
, Oid policy_id
);
28 extern ObjectAddress
CreatePolicy(CreatePolicyStmt
*stmt
);
29 extern ObjectAddress
AlterPolicy(AlterPolicyStmt
*stmt
);
31 extern Oid
get_relation_policy_oid(Oid relid
, const char *policy_name
,
34 extern ObjectAddress
rename_policy(RenameStmt
*stmt
);
36 extern bool relation_has_policies(Relation rel
);