How setup pgAgent step so Result
or Output
show the number of rows processed on my function?
my function already return the number of rows affected, but that isnt the value show in Result
.
BEGIN
WHILE int_pending > 0 LOOP
.....
UPDATE table SET ....
GET DIAGNOSTICS int_row_count = ROW_COUNT;
int_total = int_total + int_row_count;
END LOOP;
RETURN int_total;
END;