Re: [PORTS] Linux/Alpha Regression tests....

From: "Thomas G(dot) Lockhart" <lockhart(at)alumni(dot)caltech(dot)edu>
To: Ryan Kirkpatrick <rkirkpat(at)nag(dot)cs(dot)colorado(dot)edu>
Cc: pgsql-ports(at)postgreSQL(dot)org, pgsql-hackers(at)postgreSQL(dot)org
Subject: Re: [PORTS] Linux/Alpha Regression tests....
Date: 1998-10-31 03:32:57
Message-ID: 363A84E9.2DA479C9@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> The biggest trouble in finding this bug is how "complex" the
> datetime code is... Actually after hacking at it for a few hours (with
> no success) I have other words to describe it, but I will refrain.

I'll assume it would be a compliment :) I was happy with how simple I
was able to make the code. Date/time stuff ain't easy.

I'm guessing that the problem is in one of two areas:

1) the configure/build process is confused as to what kind of time
support you have on your system. There are two styles of local time
conversion interfaces on Unix systems: one which uses global variables
to return info on time zones, and one which returns that info as part of
the tz structure. The third type, which is pretty much no timezone
support, is probably not relevant, though if your system is really
confused you should eliminate that as a possibility. The second type is
reentrant, the first is not. It doesn't really matter which kind your
system uses because each backend is essentially single-threaded, but if
it guesses wrong on what kind of system you have then the results will
be garbage.

2) the Postgres code stomps on the global variables used for timezone
info. I think I got that resolved, but I figured I should mention it
just in case.

It is most likely that (1) is the problem. Try compiling with
"-DDATEDEBUG" specified, and see if that helps you track through the
code. Though it seems like you already know where the problem is
located, so I'd just pound on an example until you get it figured out.

Good luck.

- Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Vince Vielhaber 1998-10-31 03:33:30 RE: [HACKERS] Why is libcurses added to build by configure?
Previous Message The Hermit Hacker 1998-10-31 03:16:31 Re: [HACKERS] Why is libcurses added to build by configure?