From: | Elaine Lindelef <eel(at)cognitivity(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: timestamp weirdness |
Date: | 2002-02-01 17:37:58 |
Message-ID: | v04210100b8808202526f@[216.244.0.9] |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
>...
> > The oid correctly reflects the order of the insertion of the rows...
> > but look at the timestamp - the last row has a timestamp _2 minutes
> > before_ the previous row. How could this be happening? We know row
> > 69719 was inserted _after_ 69718, by probably about 30 seconds.
>
>The timestamp provided as a result of evaluating 'now' is the time of
>the start of the transaction, not the instantaneous wall clock time (if
>you want the latter there is a function to provide it).
>
>So, the times will reflect the time the transaction was started, while
>the OID will reflect the order in which the insert/update actually
>happened within the transaction.
>
>hth
>
> - Thomas
The beginning of the transactions was definitely in the same order as
the OID reflects, and I'm quite sure the previous transaction was
completed before the next connection was started as well.
Elaine
From | Date | Subject | |
---|---|---|---|
Next Message | James Leigh | 2002-02-01 17:49:48 | select + PQnotifies |
Previous Message | Vince Vielhaber | 2002-02-01 17:29:40 | Re: poll on slashdot |
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Eisentraut | 2002-02-01 17:40:05 | Re: Per-database and per-user GUC settings |
Previous Message | DzZero | 2002-02-01 17:24:41 | Re: sql select query with column 'AS' assignment |