Re: When is a record NULL? - Mailing list pgsql-hackers

From Eric B. Ridge
Subject Re: When is a record NULL?
Date
Msg-id 114FE040-D9BD-4000-9A49-74F191C67A71@tcdi.com
Whole thread Raw
In response to Re: When is a record NULL?  ("David E. Wheeler" <david@kineticode.com>)
Responses Re: When is a record NULL?  ("David E. Wheeler" <david@kineticode.com>)
List pgsql-hackers
On Jul 26, 2009, at 6:46 PM, David E. Wheeler wrote:

> Is there some way to get using_while() to properly return all the  
> records?

I'm just a random lurker, but FOUND seems to work just fine (I suppose  
it's PG-specific?).

http://www.postgresql.org/docs/8.1/static/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS

BEGIN   OPEN stuff;   FETCH stuff INTO rec;   WHILE FOUND LOOP      RETURN NEXT rec;      FETCH stuff INTO rec;   END
LOOP;
END;

HTH,

eric




pgsql-hackers by date:

Previous
From: Sam Mason
Date:
Subject: Re: When is a record NULL?
Next
From: Tom Lane
Date:
Subject: Re: generic explain options v3