pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Zeugswetter Andreas SB SD <ZeugswetterA@spardat.at>
Cc: Hannu Krosing <hannu@tm.ee>
Cc: pgsql-hackers@postgreSQL.org
Cc: pgsql-sql@postgreSQL.org
Subject: Re: Cursors and backwards scans and SCROLL
Date: Mon, 10 Mar 2003 09:40:55 -0500
Message-ID: <17076.1047307255@sss.pgh.pa.us> (raw)
In-Reply-To: <46C15C39FEB2C44BA555E356FBCD6FA4961F53@m0114.s-mxs.net>
References: <46C15C39FEB2C44BA555E356FBCD6FA4961F53@m0114.s-mxs.net>

"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at> writes:
>> but just give a warning and then run the underlying
>> query _again_, this toime with materialize on top and also do a Move to
>> reposition the cursor. This will probably not work correctly for all
>> tranasaction isolation levels though but it will penalize only these
>> cases that absolutely need it. The penalty will of course be 
>> heavier ;(

> rescan can only work in serializable isolation, no?

I had thought about this and concluded it was not worth the trouble.
It could be made to work if we copy the snapshot data from old plan to
new, but realistically there's no value in it.  Existing applications
that are successfully using backwards-fetch are using queries that don't
need materialization; therefore there's no compatibility gain from
adding this extra code.

			regards, tom lane



view thread (15+ messages)  latest in thread

Message-ID: <17076.1047307255@sss.pgh.pa.us>
Permalink:  ../17076.1047307255@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/17076.1047307255@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, ZeugswetterA@spardat.at, hannu@tm.ee, pgsql-hackers@postgreSQL.org
  Subject: Re: Cursors and backwards scans and SCROLL
  In-Reply-To: <17076.1047307255@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox