Re: why postgresql over other RDBMS

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Scott Ribe <scott_ribe(at)killerbytes(dot)com>
Cc: PFC <lists(at)peufeu(dot)com>, Ron Johnson <ron(dot)l(dot)johnson(at)cox(dot)net>, pgsql-general General <pgsql-general(at)postgresql(dot)org>
Subject: Re: why postgresql over other RDBMS
Date: 2007-06-04 03:00:30
Message-ID: 1419.1180926030@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Scott Ribe <scott_ribe(at)killerbytes(dot)com> writes:
>> So it works right now, except it doesn't have (yet) the infrastructure to
>> keep the scans synchronized

> Perhaps you only got one read of the table because the process is
> essentially self-synchronizing.

Right. Multiple seqscans that are anywhere near reading the same block
of a table will tend to self-synchronize. There is a patch under
consideration for 8.3 that helps this along by making seqscans run
"circularly" --- that is, not always from block 0 to block N, but from
block M to N and then 0 to M-1, where the start point M can be chosen
by looking to see where any other concurrent seqscan is presently
reading. Once you've got a reasonable start point, you don't have to do
anything else.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Islam Hegazy 2007-06-04 03:09:04 Re: debugging C functions
Previous Message Jeff Davis 2007-06-04 02:21:25 Re: multimaster