From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Mark Kirkwood <mark(dot)kirkwood(at)catalyst(dot)net(dot)nz>, pgsql-bugs(at)postgresql(dot)org, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: [HACKERS] Cursor with hold emits the same row more than once across commits in 8.3.7 |
Date: | 2009-06-09 18:00:41 |
Message-ID: | 603c8f070906091100v1e991c97y8e58e62153efac2a@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-hackers |
On Tue, Jun 9, 2009 at 1:47 PM, Tom Lane<tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> This seems like the only option that will produce correct answers, so
>> it gets my vote. How much is the performance penalty for
>> materializing the tuplestore? I'm inclined to think that whatever it
>> is, you just have to pay it if you ask for a WITH HOLD cursor.
>
> I don't mind paying it for a WITH HOLD cursor, since by definition
> you're asking for a more expensive behavior there. The thing that is
> bothering me more is whether we want to pay a price for a *non* WITH
> HOLD cursor. You can get instability for seqscan or volatile functions
> if you just try MOVE BACKWARD ALL and re-read.
[ reads the fine manual ]
It seems like we need to materialize if you ask for WITH HOLD or
SCROLL. I guess the question is what to do if you haven't specified
either and then try to scroll anyway. The manual says that it may
fail, but it doesn't say that might seem to work but actually return
wrong answers.
...Robert
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2009-06-09 18:00:43 | Re: [HACKERS] Cursor with hold emits the same row more than once across commits in 8.3.7 |
Previous Message | Jeff Davis | 2009-06-09 17:54:16 | Re: Cursor with hold emits the same row more than once across commits in 8.3.7 |
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2009-06-09 18:00:43 | Re: [HACKERS] Cursor with hold emits the same row more than once across commits in 8.3.7 |
Previous Message | Josh Berkus | 2009-06-09 17:57:49 | Re: Multicolumn index corruption on 8.4 beta 2 |