Re: Losing data - Mailing list pgsql-general

From Tom Lane
Subject Re: Losing data
Date
Msg-id 19287.1213899626@sss.pgh.pa.us
Whole thread Raw
In response to Re: Losing data  (Garry Saddington <garry@schoolteachers.co.uk>)
List pgsql-general
Garry Saddington <garry@schoolteachers.co.uk> writes:
> Oh, and the problem has been intermittant. Another
> thing that happened this morning is that Postgres had today as 18/06/2008
> when in fact it was 19/06/2008 and the OS reported this correctly.

Two theories about that one:

1. Postgres' timezone setting is far away from where you are.

2. You were in a transaction that had been open since yesterday.
now() and related functions show time of transaction start.


#2 is interesting since forgetting to commit an open transaction might
also explain the "data loss" complaint.

            regards, tom lane

pgsql-general by date:

Previous
From: aklaver@comcast.net (Adrian Klaver)
Date:
Subject: Re: Losing data
Next
From: Shane Ambler
Date:
Subject: Re: Losing data