PostgreSQL Source Code  git master
pg_collation.h File Reference
#include "catalog/genbki.h"
Include dependency graph for pg_collation.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CollationRelationId   3456
 
#define Natts_pg_collation   8
 
#define Anum_pg_collation_collname   1
 
#define Anum_pg_collation_collnamespace   2
 
#define Anum_pg_collation_collowner   3
 
#define Anum_pg_collation_collprovider   4
 
#define Anum_pg_collation_collencoding   5
 
#define Anum_pg_collation_collcollate   6
 
#define Anum_pg_collation_collctype   7
 
#define Anum_pg_collation_collversion   8
 
#define DEFAULT_COLLATION_OID   100
 
#define C_COLLATION_OID   950
 
#define POSIX_COLLATION_OID   951
 
#define COLLPROVIDER_DEFAULT   'd'
 
#define COLLPROVIDER_ICU   'i'
 
#define COLLPROVIDER_LIBC   'c'
 

Typedefs

typedef FormData_pg_collationForm_pg_collation
 

Functions

 CATALOG (pg_collation, 3456)
 
 DATA (insert OID=100(default PGNSP PGUID d -1 "" "" _null_))
 
 DESCR ("database's default collation")
 
 DESCR ("standard C collation")
 
 DESCR ("standard POSIX collation")
 

Variables

 FormData_pg_collation
 

Macro Definition Documentation

◆ Anum_pg_collation_collcollate

#define Anum_pg_collation_collcollate   6

Definition at line 64 of file pg_collation.h.

Referenced by CollationCreate().

◆ Anum_pg_collation_collctype

#define Anum_pg_collation_collctype   7

Definition at line 65 of file pg_collation.h.

Referenced by CollationCreate().

◆ Anum_pg_collation_collencoding

#define Anum_pg_collation_collencoding   5

Definition at line 63 of file pg_collation.h.

Referenced by CollationCreate().

◆ Anum_pg_collation_collname

#define Anum_pg_collation_collname   1

Definition at line 59 of file pg_collation.h.

Referenced by CollationCreate().

◆ Anum_pg_collation_collnamespace

#define Anum_pg_collation_collnamespace   2

Definition at line 60 of file pg_collation.h.

Referenced by CollationCreate().

◆ Anum_pg_collation_collowner

#define Anum_pg_collation_collowner   3

Definition at line 61 of file pg_collation.h.

Referenced by CollationCreate().

◆ Anum_pg_collation_collprovider

#define Anum_pg_collation_collprovider   4

Definition at line 62 of file pg_collation.h.

Referenced by CollationCreate().

◆ Anum_pg_collation_collversion

#define Anum_pg_collation_collversion   8

Definition at line 66 of file pg_collation.h.

Referenced by AlterCollation(), CollationCreate(), and pg_newlocale_from_collation().

◆ C_COLLATION_OID

◆ CollationRelationId

◆ COLLPROVIDER_DEFAULT

#define COLLPROVIDER_DEFAULT   'd'

Definition at line 84 of file pg_collation.h.

Referenced by DefineCollation().

◆ COLLPROVIDER_ICU

◆ COLLPROVIDER_LIBC

◆ DEFAULT_COLLATION_OID

◆ Natts_pg_collation

#define Natts_pg_collation   8

Definition at line 58 of file pg_collation.h.

Referenced by AlterCollation(), and CollationCreate().

◆ POSIX_COLLATION_OID

#define POSIX_COLLATION_OID   951

Definition at line 81 of file pg_collation.h.

Referenced by lc_collate_is_c(), and lc_ctype_is_c().

Typedef Documentation

◆ Form_pg_collation

Function Documentation

◆ CATALOG()

CATALOG ( pg_collation  ,
3456   
)

Definition at line 32 of file pg_collation.h.

33 {
34  NameData collname; /* collation name */
35  Oid collnamespace; /* OID of namespace containing collation */
36  Oid collowner; /* owner of collation */
37  char collprovider; /* see constants below */
38  int32 collencoding; /* encoding for this collation; -1 = "all" */
39  NameData collcollate; /* LC_COLLATE setting */
40  NameData collctype; /* LC_CTYPE setting */
41 #ifdef CATALOG_VARLEN /* variable-length fields start here */
42  text collversion; /* provider-dependent version of collation
43  * data */
44 #endif
unsigned int Oid
Definition: postgres_ext.h:31
signed int int32
Definition: c.h:284
Definition: c.h:541
FormData_pg_collation
Definition: pg_collation.h:45
Definition: c.h:487

◆ DATA()

DATA ( insert  OID = 100(default PGNSP PGUID d -1 "" "" _null_))

◆ DESCR() [1/3]

DESCR ( "database's default collation"  )

◆ DESCR() [2/3]

DESCR ( "standard C collation"  )

◆ DESCR() [3/3]

DESCR ( "standard POSIX collation"  )

Variable Documentation

◆ FormData_pg_collation

FormData_pg_collation

Definition at line 45 of file pg_collation.h.