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
32{
33 /* oid */
34 Oid oid;
35
36 /* name of the conversion */
37 NameData conname;
38
39 /* namespace that the conversion belongs to */
41
42 /* owner of the conversion */
44
45 /* FOR encoding id */
47
48 /* TO encoding id */
50
51 /* OID of the conversion proc */
53
54 /* true if this is a default conversion */
55 bool condefault BKI_DEFAULT(t);
57
59
60/* ----------------
61 * Form_pg_conversion corresponds to a pointer to a tuple with
62 * the format of pg_conversion relation.
63 * ----------------
64 */
66
70
74
75
76extern ObjectAddress ConversionCreate(const char *conname, Oid connamespace,
79 Oid conproc, bool def);
82
83#endif /* PG_CONVERSION_H */
Oid regproc
Definition c.h:675
int32_t int32
Definition c.h:554
#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 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
static char * encoding
Definition initdb.c:139
END_CATALOG_STRUCT typedef 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:772