1/*-------------------------------------------------------------------------
4 * Timezone Library Integration Functions
6 * Note: this file contains only definitions that are private to the
7 * timezone library. Public definitions are in pgtime.h.
9 * Portions Copyright (c) 1996-2025, PostgreSQL Global Development Group
14 *-------------------------------------------------------------------------
23 #define SMALLEST(a, b) (((a) < (b)) ? (a) : (b))
24 #define BIGGEST(a, b) (((a) > (b)) ? (a) : (b))
27{
/* time type information */
36{
/* leap second information */
57 * The time type to use for early times or if no transitions. It is always
58 * zero for recent tzdb releases. It might be nonzero for data from tzdb
67 /* TZname contains the canonically-cased name of the timezone */
int tzload(const char *name, char *canonname, struct state *sp, bool doextend)
int pg_open_tzfile(const char *name, char *canonname)
bool tzparse(const char *name, struct state *sp, bool lastditch)
char TZname[TZ_STRLEN_MAX+1]
struct ttinfo ttis[TZ_MAX_TYPES]
char chars[BIGGEST(BIGGEST(TZ_MAX_CHARS+1, 4),(2 *(TZ_STRLEN_MAX+1)))]
pg_time_t ats[TZ_MAX_TIMES]
struct lsinfo lsis[TZ_MAX_LEAPS]
unsigned char types[TZ_MAX_TIMES]