PostgreSQL Source Code
git master
Loading...
Searching...
No Matches
pg_seclabel.h
Go to the documentation of this file.
1
/* -------------------------------------------------------------------------
2
*
3
* pg_seclabel.h
4
* definition of the "security label" system catalog (pg_seclabel)
5
*
6
* Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
7
* Portions Copyright (c) 1994, Regents of the University of California
8
*
9
* src/include/catalog/pg_seclabel.h
10
*
11
* NOTES
12
* The Catalog.pm module reads this file and derives schema
13
* information.
14
*
15
* -------------------------------------------------------------------------
16
*/
17
#ifndef PG_SECLABEL_H
18
#define PG_SECLABEL_H
19
20
#include "
catalog/genbki.h
"
21
#include "catalog/pg_seclabel_d.h"
/* IWYU pragma: export */
22
23
/* ----------------
24
* pg_seclabel definition. cpp turns this into
25
* typedef struct FormData_pg_seclabel
26
* ----------------
27
*/
28
CATALOG
(
pg_seclabel
,3596,
SecLabelRelationId
)
29
{
30
Oid
objoid;
/* OID of the object itself */
31
Oid
classoid
BKI_LOOKUP
(
pg_class
);
/* OID of table containing the
32
* object */
33
int32
objsubid;
/* column number, or 0 if not used */
34
35
#ifdef CATALOG_VARLEN
/* variable-length fields start here */
36
text
provider
BKI_FORCE_NOT_NULL
;
/* name of label provider */
37
text
label
BKI_FORCE_NOT_NULL
;
/* security label of the object */
38
#endif
39
}
FormData_pg_seclabel
;
40
41
DECLARE_TOAST
(
pg_seclabel
, 3598, 3599);
42
43
DECLARE_UNIQUE_INDEX_PKEY
(
pg_seclabel_object_index
, 3597,
SecLabelObjectIndexId
,
pg_seclabel
, btree(objoid
oid_ops
, classoid
oid_ops
, objsubid
int4_ops
,
provider
text_ops
));
44
45
#endif
/* PG_SECLABEL_H */
int32
int32_t int32
Definition
c.h:542
genbki.h
DECLARE_UNIQUE_INDEX_PKEY
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition
genbki.h:86
BKI_LOOKUP
#define BKI_LOOKUP(catalog)
Definition
genbki.h:46
BKI_FORCE_NOT_NULL
#define BKI_FORCE_NOT_NULL
Definition
genbki.h:33
DECLARE_TOAST
#define DECLARE_TOAST(name, toastoid, indexoid)
Definition
genbki.h:63
CATALOG
#define CATALOG(name, oid, oidmacro)
Definition
genbki.h:23
label
static char * label
Definition
pg_basebackup.c:135
FormData_pg_seclabel
FormData_pg_seclabel
Definition
pg_seclabel.h:39
Oid
unsigned int Oid
Definition
postgres_ext.h:32
fb
static int fb(int x)
Definition
preproc-init.c:92
provider
Definition
oauth-curl.c:115
varlena
Definition
c.h:706
src
include
catalog
pg_seclabel.h
Generated on Sat Feb 7 2026 06:13:16 for PostgreSQL Source Code by
1.9.8