LCOV - code coverage report
Current view: top level - src/include/catalog - pg_collation_d.h (source / functions) Hit Total Coverage
Test: PostgreSQL 18devel Lines: 8 10 80.0 %
Date: 2024-11-21 08:14:44 Functions: 1 1 100.0 %
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-2024, 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             : #define CollationRelationId 3456
      22             : #define CollationNameEncNspIndexId 3164
      23             : #define CollationOidIndexId 3085
      24             : 
      25             : #define Anum_pg_collation_oid 1
      26             : #define Anum_pg_collation_collname 2
      27             : #define Anum_pg_collation_collnamespace 3
      28             : #define Anum_pg_collation_collowner 4
      29             : #define Anum_pg_collation_collprovider 5
      30             : #define Anum_pg_collation_collisdeterministic 6
      31             : #define Anum_pg_collation_collencoding 7
      32             : #define Anum_pg_collation_collcollate 8
      33             : #define Anum_pg_collation_collctype 9
      34             : #define Anum_pg_collation_colllocale 10
      35             : #define Anum_pg_collation_collicurules 11
      36             : #define Anum_pg_collation_collversion 12
      37             : 
      38             : #define Natts_pg_collation 12
      39             : 
      40             : 
      41             : #define COLLPROVIDER_DEFAULT    'd'
      42             : #define COLLPROVIDER_BUILTIN    'b'
      43             : #define COLLPROVIDER_ICU        'i'
      44             : #define COLLPROVIDER_LIBC       'c'
      45             : 
      46             : static inline const char *
      47          78 : collprovider_name(char c)
      48             : {
      49          78 :     switch (c)
      50             :     {
      51          12 :         case COLLPROVIDER_BUILTIN:
      52          12 :             return "builtin";
      53          14 :         case COLLPROVIDER_ICU:
      54          14 :             return "icu";
      55          52 :         case COLLPROVIDER_LIBC:
      56          52 :             return "libc";
      57           0 :         default:
      58           0 :             return "???";
      59             :     }
      60             : }
      61             : 
      62             : #define DEFAULT_COLLATION_OID 100
      63             : #define C_COLLATION_OID 950
      64             : 
      65             : #endif                          /* PG_COLLATION_D_H */

Generated by: LCOV version 1.14