From: | Richard Huxton <dev(at)archonet(dot)com> |
---|---|
To: | Ray Madigan <ray(at)madigans(dot)org> |
Cc: | Pgsql-Sql <pgsql-sql(at)postgresql(dot)org> |
Subject: | Re: LOOP? |
Date: | 2005-02-17 18:05:54 |
Message-ID: | 4214DD02.2030207@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-sql |
Ray Madigan wrote:
> I am writing a trigger to inspect a row of a temporary table to determine if
> the row has any null columns, I will return as soon as I find a null
> column. I ran across this in the manual and It seems like I could use
>
> The FOR-IN-EXECUTE statement is another way to iterate over rows:
> [<<label>>]
> FOR record_or_row IN EXECUTE text_expression LOOP
> statements
> END LOOP;
>
> postgresql has a RECORD type which is an abstract row.
>
> Does it have any fields to tell the length?
>
> Does it have an accessor function like new.element(index};
Short answer - no to the above.
You'll not find what you want in plpgsql, perhaps look at pltcl or
plperl for this sort of thing.
--
Richard Huxton
Archonet Ltd
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2005-02-17 18:19:12 | Re: pg primary key bug? |
Previous Message | T- Bone | 2005-02-17 17:55:30 | Comments on subquery performance |