Re: left join in cursor

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Alexey Dashevsky <alex(at)kpgaz(dot)chernigov(dot)ua>
Cc: "pgsql-sql" <pgsql-sql(at)postgresql(dot)org>
Subject: Re: left join in cursor
Date: 2003-06-10 13:35:23
Message-ID: 2110.1055252123@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Alexey Dashevsky <alex(at)kpgaz(dot)chernigov(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Bruno Wolff III 2003-06-10 13:58:51 Re: "Join" on delimeter aggregate query
Previous Message Achilleus Mantzios 2003-06-10 12:32:00 Re: how to determine array size