diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-25 03:51:23 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2006-07-25 03:51:23 +0000 |
| commit | d8b5c95ca8a2ce7cd4062d4a12710ca977bac87c (patch) | |
| tree | a22dd25471942e3a24edcc2319e03319bed0482b /src/include/utils/datetime.h | |
| parent | 631ea6188366ee1b9818fed88d8fadd495246fd7 (diff) | |
| download | postgresql-d8b5c95ca8a2ce7cd4062d4a12710ca977bac87c.tar.gz | |
Remove hard-wired lists of timezone abbreviations in favor of providing
configuration files that can be altered by a DBA. The australian_timezones
GUC setting disappears, replaced by a timezone_abbreviations setting (set this
to 'Australia' to get the effect of australian_timezones). The list of zone
names defined by default has undergone a bit of cleanup, too. Documentation
still needs some work --- in particular, should we fix Table B-4, or just get
rid of it? Joachim Wieland, with some editorializing by moi.
Diffstat (limited to 'src/include/utils/datetime.h')
| -rw-r--r-- | src/include/utils/datetime.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/include/utils/datetime.h b/src/include/utils/datetime.h index 838684695f..17ae262135 100644 --- a/src/include/utils/datetime.h +++ b/src/include/utils/datetime.h @@ -9,7 +9,7 @@ * Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * - * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.59 2006/06/06 16:20:11 momjian Exp $ + * $PostgreSQL: pgsql/src/include/utils/datetime.h,v 1.60 2006/07/25 03:51:22 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -20,6 +20,7 @@ #include <math.h> #include "utils/timestamp.h" +#include "utils/tzparser.h" /* ---------------------------------------------------------------- @@ -300,5 +301,8 @@ extern int DecodeUnits(int field, char *lowtoken, int *val); extern int j2day(int jd); extern bool CheckDateTokenTables(void); +extern void InstallTimeZoneAbbrevs(tzEntry *abbrevs, int n); + +extern Datum pg_timezonenames(PG_FUNCTION_ARGS); #endif /* DATETIME_H */ |
