X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id CA64330E956 for ; Tue, 10 Jun 2003 13:35:42 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 86819-08 for ; Tue, 10 Jun 2003 10:35:32 -0300 (ADT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by svr1.postgresql.org (Postfix) with ESMTP id 7A17F30DC33 for ; Tue, 10 Jun 2003 10:35:31 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h5ADZOU6002111; Tue, 10 Jun 2003 09:35:24 -0400 (EDT) To: Alexey Dashevsky Cc: "pgsql-sql" Subject: Re: left join in cursor In-reply-to: <20030609142058.877FD1933F@kpgaz.chernigov.ua> References: <20030609142058.877FD1933F@kpgaz.chernigov.ua> Comments: In-reply-to Alexey Dashevsky message dated "Mon, 09 Jun 2003 17:21:03 +0300" Date: Tue, 10 Jun 2003 09:35:23 -0400 Message-ID: <2110.1055252123@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200306/81 X-Sequence-Number: 13839 Alexey Dashevsky 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