PostgreSQL Source Code git master
Loading...
Searching...
No Matches
pg_conversion.h
Go to the documentation of this file.
1/*-------------------------------------------------------------------------
2 *
3 * pg_conversion.h
4 * definition of the "conversion" system catalog (pg_conversion)
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_conversion.h
10 *
11 * NOTES
12 * The Catalog.pm module reads this file and derives schema
13 * information.
14 *
15 *-------------------------------------------------------------------------
16 */
17#ifndef PG_CONVERSION_H
18#define PG_CONVERSION_H
19
20#include "catalog/genbki.h"
22#include "catalog/pg_conversion_d.h" /* IWYU pragma: export */
23
24/* ----------------
25 * pg_conversion definition. cpp turns this into
26 * typedef struct FormData_pg_conversion
27 * ----------------
28 */
30{
31 /* oid */
32 Oid oid;
33
34 /* name of the conversion */
35 NameData conname;
36
37 /* namespace that the conversion belongs to */
39
40 /* owner of the conversion */
42
43 /* FOR encoding id */
45
46 /* TO encoding id */
48
49 /* OID of the conversion proc */
51
52 /* true if this is a default conversion */
53 bool condefault BKI_DEFAULT(t);
55
56/* ----------------
57 * Form_pg_conversion corresponds to a pointer to a tuple with
58 * the format of pg_conversion relation.
59 * ----------------
60 */
62
66
70
71
72extern ObjectAddress ConversionCreate(const char *conname, Oid connamespace,
75 Oid conproc, bool def);
78
79#endif /* PG_CONVERSION_H */
Oid regproc
Definition c.h:663
int32_t int32
Definition c.h:542
#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 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
static char * encoding
Definition initdb.c:139
FormData_pg_conversion * Form_pg_conversion
FormData_pg_conversion
Oid FindDefaultConversion(Oid name_space, int32 for_encoding, int32 to_encoding)
ObjectAddress ConversionCreate(const char *conname, Oid connamespace, Oid conowner, int32 conforencoding, int32 contoencoding, Oid conproc, bool def)
unsigned int Oid
static int fb(int x)
Definition c.h:760