Here's what I'm doing. It is to work on existing tables (not triggerable), but for subsequent updates to the table(s) that I'm tokenizing fields for, a trigger will be used to do the tokenizing of new data _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ CREATE OR REPLACE FUNCTION gen_tokens_n_map(character varying, character varying, varchar, bigint, bigint)_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ I will now try Pavel's suggestion of use a EXECUTE statement and FOR IN EXECUTE statement And to DJ's question, version 7.4.12. Yes, OUCH!I'll let you know if the execute in the FOR LOOP will help out. Thanks all! Ralph -- =============================================================================================== FOR TableRec IN SELECT * FROM temp_gentokenstable order by id LOOP -- Ralph _________________________ |