[HACKERS] Spinlock backoff algorithm

2007-11-14 Thread Magne Mæhre
I was playing with a Nevada server and noticed a rush on the FPU (the Nevada has a single shared FPU for its 32 threads). Looking at the spinlock code, I found : cur_delay += (int) (cur_delay * ((double) random() / (double) MAX_RANDOM_VALUE) + 0.5); I understand the reasoning for the

Re: [HACKERS] Timezone database changes

2007-10-11 Thread Magne Mæhre
Tom Lane wrote: As an example, timestamptz '2007-01-01 00:00 -05' + interval '6 months' must yield 2007-07-01 00:00 -05 according to the spec, AFAICS; but most people living in the EST5EDT zone would prefer to get midnight -04. There are probably some folk in South America who'd prefer midnight

Re: [HACKERS] Timezone database changes

2007-10-11 Thread Magne Mæhre
Trevor Talbot wrote: Thinking that it might have had out of date zone rules brings up an interesting scenario though. Consider a closed (no networking or global interest) filing system in a local organization's office, where it's used to record the minutes of meetings and such via human input. I

Re: [HACKERS] Timezone database changes

2007-10-10 Thread Magne Mæhre
Trevor Talbot wrote: , what I meant at least (not sure if others meant it), is storing the value in the timezone it was entered, along with what zone that was. That makes the value stable with respect to the zone it belongs to, instead of being stable with respect to UTC. When DST rules change,

Re: [HACKERS] Timezone database changes

2007-10-09 Thread Magne Mæhre
Trevor Talbot wrote: Actually, I'm used to knowing how PostgreSQL does it, but looking at things again I remember some confusion I had when first encountering the timestamp types. I don't know what the SQL Standard says; is the implication that "timestamp with time zone" actually stores the lit