mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 00:10:07 -05:00
Use the term "system catalog" rather than "system relation" in assorted places where it's clearly referring to a table rather than, say, an index. Use more natural word order in the header boilerplate, improve some of the one-liner catalog descriptions, and fix assorted random deviations from the normal boilerplate. All purely neatnik-ism, but why not. John Naylor, some additional cleanup by me Discussion: https://postgr.es/m/CAJVSVGUeJmFB3h-NJ18P32NPa+kzC165nm7GSoGHfPaN80Wxcw@mail.gmail.com
51 lines
1.4 KiB
C
51 lines
1.4 KiB
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* pg_policy.h
|
|
* definition of the "policy" system catalog (pg_policy)
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2018, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
* src/include/catalog/pg_policy.h
|
|
*
|
|
* NOTES
|
|
* The Catalog.pm module reads this file and derives schema
|
|
* information.
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#ifndef PG_POLICY_H
|
|
#define PG_POLICY_H
|
|
|
|
#include "catalog/genbki.h"
|
|
#include "catalog/pg_policy_d.h"
|
|
|
|
/* ----------------
|
|
* pg_policy definition. cpp turns this into
|
|
* typedef struct FormData_pg_policy
|
|
* ----------------
|
|
*/
|
|
CATALOG(pg_policy,3256,PolicyRelationId)
|
|
{
|
|
NameData polname; /* Policy name. */
|
|
Oid polrelid; /* Oid of the relation with policy. */
|
|
char polcmd; /* One of ACL_*_CHR, or '*' for all */
|
|
bool polpermissive; /* restrictive or permissive policy */
|
|
|
|
#ifdef CATALOG_VARLEN
|
|
Oid polroles[1]; /* Roles associated with policy, not-NULL */
|
|
pg_node_tree polqual; /* Policy quals. */
|
|
pg_node_tree polwithcheck; /* WITH CHECK quals. */
|
|
#endif
|
|
} FormData_pg_policy;
|
|
|
|
/* ----------------
|
|
* Form_pg_policy corresponds to a pointer to a row with
|
|
* the format of pg_policy relation.
|
|
* ----------------
|
|
*/
|
|
typedef FormData_pg_policy *Form_pg_policy;
|
|
|
|
#endif /* PG_POLICY_H */
|