Re: [SQL] left join in cursor

2003-06-10 Thread Tom Lane
Alexey Dashevsky <[EMAIL PROTECTED]> 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 b

[SQL] left join in cursor

2003-06-10 Thread Alexey Dashevsky
Hi. Exists too tables (PostgreSQL 7.2.3): a ("cl" integer primary key, a1, a2, ...) - 10 records; b ("cl" integer primary key, b1, b2, ...) - 800 records. BEGIN; 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";