Problem solved. (My early transactions worked because they wereInserts. When they become Updates, this caused an error because of asubsequent call to pg_fetch_array that didn't make sense.)
thank you,
george