Re: Suggestion for optimization

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Dann Corbit" <DCorbit(at)connx(dot)com>
Cc: "Doug McNaught" <doug(at)wireboard(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Suggestion for optimization
Date: 2002-04-05 19:51:41
Message-ID: 9605.1018036301@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Dann Corbit" <DCorbit(at)connx(dot)com> writes:
> How many accounts are 90 days overdue? Bill says 78 and Frank says 82.
> Who is right and how can we know?

If Bill and Frank look at exactly the same instant (ie, from read-only
transactions started at the same time), they will get the same answer.
If they are looking from transactions started at different times, or
from transactions that have themselves added/removed rows, they won't
necessarily get the same answer. That does not make either answer
wrong, just a reflection of the snapshots they are seeing.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Doug McNaught 2002-04-05 19:55:07 Re: Suggestion for optimization
Previous Message Doug McNaught 2002-04-05 19:51:32 Re: Suggestion for optimization