PostgreSQL Source Code git master
policy.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * policy.h
4 * prototypes for policy.c.
5 *
6 *
7 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/commands/policy.h
11 *
12 *-------------------------------------------------------------------------
13 */
14
15#ifndef POLICY_H
16#define POLICY_H
17
19#include "nodes/parsenodes.h"
20#include "utils/relcache.h"
21
22extern void RelationBuildRowSecurity(Relation relation);
23
24extern void RemovePolicyById(Oid policy_id);
25
26extern bool RemoveRoleFromObjectPolicy(Oid roleid, Oid classid, Oid policy_id);
27
30
31extern Oid get_relation_policy_oid(Oid relid, const char *policy_name,
32 bool missing_ok);
33
35
36extern bool relation_has_policies(Relation rel);
37
38#endif /* POLICY_H */
#define stmt
Definition: indent_codes.h:59
bool RemoveRoleFromObjectPolicy(Oid roleid, Oid classid, Oid policy_id)
Definition: policy.c:416
ObjectAddress CreatePolicy(CreatePolicyStmt *stmt)
Definition: policy.c:569
ObjectAddress AlterPolicy(AlterPolicyStmt *stmt)
Definition: policy.c:768
void RelationBuildRowSecurity(Relation relation)
Definition: policy.c:193
bool relation_has_policies(Relation rel)
Definition: policy.c:1256
Oid get_relation_policy_oid(Oid relid, const char *policy_name, bool missing_ok)
Definition: policy.c:1204
ObjectAddress rename_policy(RenameStmt *stmt)
Definition: policy.c:1096
void RemovePolicyById(Oid policy_id)
Definition: policy.c:332
unsigned int Oid
Definition: postgres_ext.h:32