"Mike Preston" <MPreston@xxxxxxxxxxxxxxx> writes: > Since I won't know in advance the fieldnames being passed by the SQL > string, I'd like to dereference the column fields by position. Can > anybody tell me the syntax for doing this? There isn't one, at least not in plpgsql. You might have some success in one of the other PL languages --- certainly pltcl or 8.0 plperl can do this. regards, tom lane ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org