postgresql/src/backend
Bruce Momjian aa8bdab272 Attached patch gets rid of the global timezone in the following steps:
* Changes the APIs to the timezone functions to take a pg_tz pointer as
an argument, representing the timezone to use for the selected
operation.

* Adds a global_timezone variable that represents the current timezone
in the backend as set by SET TIMEZONE (or guc, or env, etc).

* Implements a hash-table cache of loaded tables, so we don't have to
read and parse the TZ file everytime we change a timezone. While not
necesasry now (we don't change timezones very often), I beleive this
will be necessary (or at least good) when "multiple timezones in the
same query" is eventually implemented. And code-wise, this was the time
to do it.


There are no user-visible changes at this time. Implementing the
"multiple zones in one query" is a later step...

This also gets rid of some of the cruft needed to "back out a timezone
change", since we previously couldn't check a timezone unless it was
activated first.

Passes regression tests on win32, linux (slackware 10) and solaris x86.

Magnus Hagander
2005-04-19 03:13:59 +00:00
..
access Fix comment typo. 2005-04-17 03:04:29 +00:00
bootstrap Completion of project to use fixed OIDs for all system catalogs and 2005-04-14 20:03:27 +00:00
catalog Completion of project to use fixed OIDs for all system catalogs and 2005-04-14 20:03:27 +00:00
commands Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00
executor Create a new 'MultiExecProcNode' call API for plan nodes that don't 2005-04-16 20:07:35 +00:00
lib Replace the use of "0" with "NULL" where appropriate in dllist.c, for 2005-01-18 22:59:32 +00:00
libpq Finish up the flat-files project: get rid of GetRawDatabaseInfo() hack 2005-02-26 18:43:34 +00:00
main Tag appropriate files for rc3 2004-12-31 22:04:05 +00:00
nodes Initial implementation of lossy-tuple-bitmap data structures. 2005-04-17 22:24:02 +00:00
optimizer Don't try to constant-fold functions returning RECORD, since the optimizer 2005-04-14 21:44:09 +00:00
parser Completion of project to use fixed OIDs for all system catalogs and 2005-04-14 20:03:27 +00:00
po Translation updates 2005-01-17 20:27:44 +00:00
port Refactor fork()-related code. We need to do various housekeeping tasks 2005-03-10 07:14:03 +00:00
postmaster Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00
regex Install Tcl regex fixes to sync our regex engine with Tcl 8.4.8 (up from 2004-11-24 22:56:54 +00:00
rewrite Completion of project to use fixed OIDs for all system catalogs and 2005-04-14 20:03:27 +00:00
storage Remove an unused variable "waitingForSignal". From Qingqing Zhou. 2005-04-15 04:18:10 +00:00
tcop First phase of project to use fixed OIDs for all system catalogs and 2005-04-14 01:38:22 +00:00
utils Attached patch gets rid of the global timezone in the following steps: 2005-04-19 03:13:59 +00:00
Makefile On Windows, set the postmaster executable's stack size to 4MB, so that 2005-01-26 21:55:26 +00:00
nls.mk New translation 2005-01-09 17:10:29 +00:00