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
32{
33 /* OID of owning range type */
35
36 /* OID of range's element type (subtype) */
38
39 /* OID of the range's multirange type */
41
42 /* collation for this range type, or 0 */
44
45 /* subtype's btree opclass */
47
48 /* range constructor functions */
51
52 /* multirange constructor functions */
56
57 /* canonicalize range, or 0 */
59
60 /* subtype difference as a float8, or 0 */
63
65
66/* ----------------
67 * Form_pg_range corresponds to a pointer to a tuple with
68 * the format of pg_range relation.
69 * ----------------
70 */
72
75
78
79/*
80 * prototypes for functions in pg_range.c
81 */
82
88extern void RangeDelete(Oid rangeTypeOid);
89
90#endif /* PG_RANGE_H */
Oid regproc
Definition c.h:675
regproc RegProcedure
Definition c.h:676
#define BEGIN_CATALOG_STRUCT
Definition genbki.h:37
#define DECLARE_UNIQUE_INDEX_PKEY(name, oid, oidmacro, tblname, decl)
Definition genbki.h:105
#define BKI_LOOKUP(catalog)
Definition genbki.h:65
#define END_CATALOG_STRUCT
Definition genbki.h:38
#define BKI_DEFAULT(value)
Definition genbki.h:54
#define BKI_LOOKUP_OPT(catalog)
Definition genbki.h:66
#define DECLARE_UNIQUE_INDEX(name, oid, oidmacro, tblname, decl)
Definition genbki.h:104
#define CATALOG(name, oid, oidmacro)
Definition genbki.h:42
#define MAKE_SYSCACHE(name, idxname, nbuckets)
Definition genbki.h:146
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:62
void RangeDelete(Oid rangeTypeOid)
Definition pg_range.c:120
END_CATALOG_STRUCT typedef FormData_pg_range * Form_pg_range
Definition pg_range.h:71
unsigned int Oid
static int fb(int x)