Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
policy.h39 linesDownload Raw Back to commands
1/*-------------------------------------------------------------------------2 *3 * policy.h4 *	  prototypes for policy.c.5 *6 *7 * Portions Copyright (c) 1996-2023, PostgreSQL Global Development Group8 * Portions Copyright (c) 1994, Regents of the University of California9 *10 * src/include/commands/policy.h11 *12 *-------------------------------------------------------------------------13 */14 15#ifndef POLICY_H16#define POLICY_H17 18#include "catalog/objectaddress.h"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 28extern ObjectAddress CreatePolicy(CreatePolicyStmt *stmt);29extern ObjectAddress AlterPolicy(AlterPolicyStmt *stmt);30 31extern Oid	get_relation_policy_oid(Oid relid, const char *policy_name,32									bool missing_ok);33 34extern ObjectAddress rename_policy(RenameStmt *stmt);35 36extern bool relation_has_policies(Relation rel);37 38#endif							/* POLICY_H */39 
codekingpro/portable-devtools · Team Ai