LCOV - code coverage report
Current view: top level - src/include/catalog - pg_collation_d.h (source / functions) Coverage Total Hit
Test: PostgreSQL 19devel Lines: 80.0 % 10 8
Test Date: 2026-03-03 18:14:56 Functions: 100.0 % 1 1
Legend: Lines:     hit not hit

            Line data    Source code
       1              : /*-------------------------------------------------------------------------
       2              :  *
       3              :  * pg_collation_d.h
       4              :  *    Macro definitions for pg_collation
       5              :  *
       6              :  * Portions Copyright (c) 1996-2026, PostgreSQL Global Development Group
       7              :  * Portions Copyright (c) 1994, Regents of the University of California
       8              :  *
       9              :  * NOTES
      10              :  *  ******************************
      11              :  *  *** DO NOT EDIT THIS FILE! ***
      12              :  *  ******************************
      13              :  *
      14              :  *  It has been GENERATED by src/backend/catalog/genbki.pl
      15              :  *
      16              :  *-------------------------------------------------------------------------
      17              :  */
      18              : #ifndef PG_COLLATION_D_H
      19              : #define PG_COLLATION_D_H
      20              : 
      21              : /* Macros related to the structure of pg_collation */
      22              : 
      23              : #define CollationRelationId 3456
      24              : #define CollationNameEncNspIndexId 3164
      25              : #define CollationOidIndexId 3085
      26              : 
      27              : #define Anum_pg_collation_oid 1
      28              : #define Anum_pg_collation_collname 2
      29              : #define Anum_pg_collation_collnamespace 3
      30              : #define Anum_pg_collation_collowner 4
      31              : #define Anum_pg_collation_collprovider 5
      32              : #define Anum_pg_collation_collisdeterministic 6
      33              : #define Anum_pg_collation_collencoding 7
      34              : #define Anum_pg_collation_collcollate 8
      35              : #define Anum_pg_collation_collctype 9
      36              : #define Anum_pg_collation_colllocale 10
      37              : #define Anum_pg_collation_collicurules 11
      38              : #define Anum_pg_collation_collversion 12
      39              : 
      40              : #define Natts_pg_collation 12
      41              : 
      42              : /* Definitions copied from pg_collation.h */
      43              : 
      44              : 
      45              : #define COLLPROVIDER_DEFAULT    'd'
      46              : #define COLLPROVIDER_BUILTIN    'b'
      47              : #define COLLPROVIDER_ICU        'i'
      48              : #define COLLPROVIDER_LIBC       'c'
      49              : 
      50              : static inline const char *
      51           45 : collprovider_name(char c)
      52              : {
      53           45 :     switch (c)
      54              :     {
      55            6 :         case COLLPROVIDER_BUILTIN:
      56            6 :             return "builtin";
      57            7 :         case COLLPROVIDER_ICU:
      58            7 :             return "icu";
      59           32 :         case COLLPROVIDER_LIBC:
      60           32 :             return "libc";
      61            0 :         default:
      62            0 :             return "???";
      63              :     }
      64              : }
      65              : 
      66              : 
      67              : /* OID symbols for objects defined in pg_collation.dat */
      68              : 
      69              : #define DEFAULT_COLLATION_OID 100
      70              : #define C_COLLATION_OID 950
      71              : 
      72              : #endif                          /* PG_COLLATION_D_H */
        

Generated by: LCOV version 2.0-1