mvcc.sgml make up

Lists: pgsql-patches
From: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
To: pgsql-patches(at)postgresql(dot)org
Subject: mvcc.sgml make up
Date: 2005-12-05 11:09:35
Message-ID: 7104a7370512050309r41ee727en3d0c221e6f0923ea@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches


Attachment Content-Type Size
mvcc.sgml.diff text/plain 1.5 KB

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-patches(at)postgresql(dot)org
Cc: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
Subject: Re: mvcc.sgml make up
Date: 2005-12-05 18:41:48
Message-ID: 200512051941.48475.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Volkan YAZICI wrote:
[nothing]

Please explain why you think this change is useful.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/


From: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: mvcc.sgml make up
Date: 2005-12-05 19:10:57
Message-ID: 7104a7370512051110t30f7897bj7c7b1ee1b4e5f620@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

On 12/5/05, Peter Eisentraut <peter_e(at)gmx(dot)net> wrote:
> Please explain why you think this change is useful.

I've read related part of the documentation 4-5 times and couldn't
figure out the main difference between phantom and nonrepeatable read.
At last, I've googled and found an explanation in some Oracle
documentation. You know, not only hackers reading PostgreSQL docs.

For the second mvcc.sgml edit, there's a huge difference between "two
successive SELECT commands" and "two successive same SELECT commands".


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: mvcc.sgml make up
Date: 2005-12-05 19:39:12
Message-ID: 1788.1133811552@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com> writes:
> For the second mvcc.sgml edit, there's a huge difference between "two
> successive SELECT commands" and "two successive same SELECT commands".

Indeed, and I would argue that your proposed change is exactly wrong.
For instance,
SELECT * FROM foo WHERE col > 4;
SELECT * FROM foo WHERE col > 5;
Under READ COMMITTED, the second SELECT may retrieve rows not found by
the first, which would be impossible under SERIALIZABLE mode.

regards, tom lane


From: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: mvcc.sgml make up
Date: 2005-12-05 20:56:52
Message-ID: 7104a7370512051256x77f49d25ye2fa0332791a42b9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

On 12/5/05, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> SELECT * FROM foo WHERE col > 4;
> SELECT * FROM foo WHERE col > 5;

Ofcourse two different SELECT queries are (probably) gonna return
different results. If this is the point you want to underline in the
documentation, just rip that sentence off.

From the documentation:
«Notice that two successive SELECT commands can see different data,
even though they are within a single transaction, if other transactions
commit changes during execution of the first SELECT.»
It's not interesting to see "two different SELECT queries" will return
different results. As I understand from the above statement, the point
in here is that the "same SELECT queries" may return different results
too.

Anyway, this what I understand from documentation. I just tried to
clarify the argument. If most of you think this just confuses more and
wrong, than just ignore the patch.


From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-patches(at)postgresql(dot)org
Subject: Re: mvcc.sgml make up
Date: 2005-12-05 21:10:09
Message-ID: 2562.1133817009@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Lists: pgsql-patches

Volkan YAZICI <volkan(dot)yazici(at)gmail(dot)com> writes:
> On 12/5/05, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>> SELECT * FROM foo WHERE col > 4;
>> SELECT * FROM foo WHERE col > 5;

> Ofcourse two different SELECT queries are (probably) gonna return
> different results. If this is the point you want to underline in the
> documentation, just rip that sentence off.

The point is that a row with (say) col = 10 might appear or disappear
or change between the two queries. Whether the queries are formally
identical doesn't affect that.

regards, tom lane