Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
pg_policy.h59 linesDownload Raw Back to catalog
1/*-------------------------------------------------------------------------2 *3 * pg_policy.h4 *	  definition of the "policy" system catalog (pg_policy)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/catalog/pg_policy.h11 *12 * NOTES13 *	  The Catalog.pm module reads this file and derives schema14 *	  information.15 *16 *-------------------------------------------------------------------------17 */18#ifndef PG_POLICY_H19#define PG_POLICY_H20 21#include "catalog/genbki.h"22#include "catalog/pg_policy_d.h"23 24/* ----------------25 *		pg_policy definition. cpp turns this into26 *		typedef struct FormData_pg_policy27 * ----------------28 */29CATALOG(pg_policy,3256,PolicyRelationId)30{31	Oid			oid;			/* oid */32	NameData	polname;		/* Policy name. */33	Oid			polrelid BKI_LOOKUP(pg_class);	/* Oid of the relation with34												 * policy. */35	char		polcmd;			/* One of ACL_*_CHR, or '*' for all */36	bool		polpermissive;	/* restrictive or permissive policy */37 38#ifdef CATALOG_VARLEN39	/* Roles to which the policy is applied; zero means PUBLIC */40	Oid			polroles[1] BKI_LOOKUP_OPT(pg_authid) BKI_FORCE_NOT_NULL;41	pg_node_tree polqual;		/* Policy quals. */42	pg_node_tree polwithcheck;	/* WITH CHECK quals. */43#endif44} FormData_pg_policy;45 46/* ----------------47 *		Form_pg_policy corresponds to a pointer to a row with48 *		the format of pg_policy relation.49 * ----------------50 */51typedef FormData_pg_policy *Form_pg_policy;52 53DECLARE_TOAST(pg_policy, 4167, 4168);54 55DECLARE_UNIQUE_INDEX_PKEY(pg_policy_oid_index, 3257, PolicyOidIndexId, on pg_policy using btree(oid oid_ops));56DECLARE_UNIQUE_INDEX(pg_policy_polrelid_polname_index, 3258, PolicyPolrelidPolnameIndexId, on pg_policy using btree(polrelid oid_ops, polname name_ops));57 58#endif							/* PG_POLICY_H */59 
codekingpro/portable-devtools · Team Ai