pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andrew Gierth <andrew@tao11.riddles.org.uk>
To: pgsql-bugs@lists.postgresql.org
Cc: v.g.baranoff@gmail.com
Subject: Re: BUG #15336: Wrong cursor's bacward fetch results in select with ALL(subquery)
Date: Fri, 17 Aug 2018 12:49:19 +0100
Message-ID: <87mutl2pv1.fsf@news-spur.riddles.org.uk> (raw)
In-Reply-To: <87va892tf5.fsf@news-spur.riddles.org.uk>
References: <153449812167.1304.1741624125628126322@wrigleys.postgresql.org>
	<87va892tf5.fsf@news-spur.riddles.org.uk>

>>>>> "Andrew" == Andrew Gierth <andrew@tao11.riddles.org.uk> writes:

 Andrew> I'm really not sure yet what the correct fix is, though.

I'm guessing that locally saving/restoring the scan direction in
ExecSubPlan is going to be the best option; it seems to fix the problem,
I'll post a patch in a bit.

-- 
Andrew (irc:RhodiumToad)




view thread (8+ messages)  latest in thread

Message-ID: <87mutl2pv1.fsf@news-spur.riddles.org.uk>
Permalink:  ../87mutl2pv1.fsf@news-spur.riddles.org.uk/
Also on:    postgresql.org/message-id/87mutl2pv1.fsf@news-spur.riddles.org.uk

 · 

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-bugs@postgresql.org
  Cc: andrew@tao11.riddles.org.uk, pgsql-bugs@lists.postgresql.org, v.g.baranoff@gmail.com
  Subject: Re: BUG #15336: Wrong cursor's bacward fetch results in select with ALL(subquery)
  In-Reply-To: <87mutl2pv1.fsf@news-spur.riddles.org.uk>

* 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