Timezone patch (take 3)

Started by Magnus Haganderabout 22 years ago2 messagespatches
Jump to latest
#1Magnus Hagander
magnus@hagander.net

Here's an updated timezone patch, against current cvs HEAD.

It also adds a couple of more fixes to the find_my_exec code so it will
pick up the tz directory in all places. (It applies to cvs after the
code was moved back out of main.c and into postmaster.c/postgres.c).

Same files added and removed as before.

Passes tests on win32, linux, freebsd.

//Magnus
<<pgtime.h>> <<strftime.c>>

Attachments:

timezone3.patch.gzapplication/x-gzip; name=timezone3.patch.gzDownload
pgtime.happlication/octet-stream; name=pgtime.hDownload
strftime.capplication/octet-stream; name=strftime.cDownload
#2Bruce Momjian
bruce@momjian.us
In reply to: Magnus Hagander (#1)
New native timezone library patch for all platforms

Magnus Hagander wrote:

Here's an updated timezone patch, against current cvs HEAD.

It also adds a couple of more fixes to the find_my_exec code so it will
pick up the tz directory in all places. (It applies to cvs after the
code was moved back out of main.c and into postmaster.c/postgres.c).

OK, I have put up a new patch at:

ftp://candle.pha.pa.us/pub/postgresql/mypatches/timezone

The patch also involves removing a number of files, but that will not
affect testing. pg_time.h goes into src/include, and strftime.c goes
into src/timezone. I wil run pgindent before applying.

It did not require moving find_my_exec() higher so we are OK there with
the elog calls.

It passes all regression tests on my BSD/OS machine.

This patch hits a lot of drifting code so I will try to get it applied
in the next 12-24 hours.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073