Looping through fields - Mailing list pgsql-hackers

From Enrique Filberto
Subject Looping through fields
Date
Msg-id 3dae7b2c_1@news.tiscalinet.ch
Whole thread Raw
List pgsql-hackers
Hello

I wonder if there is a possibility to not 
only loop through record's with a FOR loop, 
but also loop through the record itselfs. 
Meaning something like that:

FOR record IN SELECT * FROM table LOOP
       FOR each field IN record LOOP
               return all field values
       END LOOP

END LOOP

I fear I have to read the systems table to
get all field names and then read one field
after another from the record with the names 
from the systems table?

Regards
elf



pgsql-hackers by date:

Previous
From: "David De Graff"
Date:
Subject: Postgres-based system to run .org?
Next
From: "Igor Georgiev"
Date:
Subject: "COPY FROM" recognize \xDD sequence - addition to copy.c & idea 4 developers