PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_range.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_range.h
4 * definition of the "range type" system catalog (pg_range)
5 *
6 *
7 * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
8 * Portions Copyright (c) 1994, Regents of the University of California
9 *
10 * src/include/catalog/pg_range.h
11 *
12 * NOTES
13 * The Catalog.pm module reads this file and derives schema
14 * information.
15 *
16 *-------------------------------------------------------------------------
17 */
18#ifndef PG_RANGE_H
19#define PG_RANGE_H
20
21#include "catalog/genbki.h"
22#include "catalog/pg_range_d.h" /* IWYU pragma: export */
23
24/* ----------------
25 * pg_range definition. cpp turns this into
26 * typedef struct FormData_pg_range
27 * ----------------
28 */
30{
31 /* OID of owning range type */
33
34 /* OID of range's element type (subtype) */
36
37 /* OID of the range's multirange type */
39
40 /* collation for this range type, or 0 */
42
43 /* subtype's btree opclass */
45
46 /* range constructor functions */
49
50 /* multirange constructor functions */
54
55 /* canonicalize range, or 0 */
57
58 /* subtype difference as a float8, or 0 */
61
62/* ----------------
63 * Form_pg_range corresponds to a pointer to a tuple with
64 * the format of pg_range relation.
65 * ----------------
66 */
68
71
74
75/*
76 * prototypes for functions in pg_range.c
77 */
78
84extern void RangeDelete(Oid rangeTypeOid);
85
86#endif /* PG_RANGE_H */
Oid regproc
Definition c.h:663
regproc RegProcedure
Definition c.h:664
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:86
#define BKI_LOOKUP(catalog)
Definition genbki.h:46
#define BKI_DEFAULT(value)
Definition genbki.h:35
#define BKI_LOOKUP_OPT(catalog)
Definition genbki.h:47
#define DECLARE_UNIQUE_INDEX(name, oid, oidmacro, tblname, decl)
Definition genbki.h:85
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:23
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:127
void RangeCreate(Oid rangeTypeOid, Oid rangeSubType, Oid rangeCollation, Oid rangeSubOpclass, RegProcedure rangeCanonical, RegProcedure rangeSubDiff, Oid multirangeTypeOid, RegProcedure rangeConstruct2, RegProcedure rangeConstruct3, RegProcedure mltrngConstruct0, RegProcedure mltrngConstruct1, RegProcedure mltrngConstruct2)
Definition pg_range.c:36
FormData_pg_range
Definition pg_range.h:60
void RangeDelete(Oid rangeTypeOid)
Definition pg_range.c:120
FormData_pg_range * Form_pg_range
Definition pg_range.h:67
unsigned int Oid
static int fb(int x)