Re: Read uncommitted ever possible?

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Read uncommitted ever possible?
Дата
Msg-id AANLkTikLBFk4mE=fg18wLStLPwGJTEbOhS=sY5G9smgQ@mail.gmail.com
обсуждение исходный текст
Ответ на Read uncommitted ever possible?  ("hans wulf" <lotu1@gmx.net>)
Список pgsql-hackers
On Thu, Mar 10, 2011 at 6:31 AM, hans wulf <lotu1@gmx.net> wrote:
> Hi,
>
> if you want to do dirty counts or sums or any aggreate stuff, you will always have to visit the table. For many
applicationsnobody cares about 0,01% inaccuracy.
 
>
> If you could keep the data that has to be aggregated in the index you could approximate values really fast.
>
> But because "Read uncommitted" is not implemented you will always have to visit the table. This is one reason why
peoplehave to still buy oracle.
 
>
> I don't know the postgres code, but I don't thing it is a big deal, not to care about consistancy. The code for
executingsuch a query should be quite basic, because no MVCC-Stuff has to be done.
 
>
> Will this feature come any time soon? Even if "Read uncommitted" is a "could read all sorts of old and dirty stuff"
itis still better than nothing.
 

Oracle has a different mvcc implementation than postgres. We keep a
lot more records of questionable visibility around in the heap so in
most real world cases your 0.01% could be 50% inaccuracy or worse.

As Bruce noted the direction the postgres project has taken has been
to limit the downsides of our mvcc implementation.  A lot of the work
in the 8.x cycle (HOT, visibility map, etc) has been laying the
groundwork for the performance benefits you want without
cheating...and covering index scans (such that they are possible) are
on the radar.

merlin


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: Read uncommitted ever possible?
Следующее
От: Greg Stark
Дата:
Сообщение: Re: Fwd: index corruption in PG 8.3.13