Re: left join in cursor - Mailing list pgsql-sql

From Tom Lane
Subject Re: left join in cursor
Date
Msg-id 2110.1055252123@sss.pgh.pa.us
Whole thread Raw
In response to left join in cursor  (Alexey Dashevsky <alex@kpgaz.chernigov.ua>)
List pgsql-sql
Alexey Dashevsky <alex@kpgaz.chernigov.ua> writes:
> DECLARE "c" SCROLL CURSOR FOR select a.*,r.b1 as rb1 from a left join b using
> (cl) order by a.cl;
> FETCH FORWARD 100 in "c"; 
> FETCH FORWARD 100 in "c";
> MOVE -200 in "c";
> [ core dump ]

Some plan node types don't cope very well with being run backwards.

There is a workaround for this in CVS tip, but not in 7.2.* nor (IIRC)
in 7.3.*.
        regards, tom lane


pgsql-sql by date:

Previous
From: Rod Taylor
Date:
Subject: Re: how to determine array size
Next
From: Bruno Wolff III
Date:
Subject: Re: "Join" on delimeter aggregate query