Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCXrp-0002yM-IF for pgsql-bugs@postgresql.org; Fri, 14 Sep 2012 15:31:41 +0000 Received: from sam.nabble.com ([216.139.236.26]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TCXrn-0000Dp-Kw for pgsql-bugs@postgresql.org; Fri, 14 Sep 2012 15:31:40 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1TCXrl-00019U-9R for pgsql-bugs@postgresql.org; Fri, 14 Sep 2012 08:31:37 -0700 Date: Fri, 14 Sep 2012 08:31:37 -0700 (PDT) From: te To: pgsql-bugs@postgresql.org Message-ID: <1347636697274-5724061.post@n5.nabble.com> In-Reply-To: <505265EA.7040901@hogranch.com> References: <1347563825521-5723932.post@n5.nabble.com> <505265EA.7040901@hogranch.com> Subject: Re: how to proccess record returning null MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.4 (/) X-Archive-Number: 201209/149 X-Sequence-Number: 34144 Sorry I didnt mention it. temp is a table name. FOR r in select distinct(id) from temp There are no distinct id's in table 'temp', so record 'r' has null values. So I guess the control is not going inside the loop. Any suggestions? -- View this message in context: http://postgresql.1045698.n5.nabble.com/how-to-proccess-record-returning-null-tp5723932p5724061.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com.