Add new "-foreach" option to pg_result
Add new "-foreach" option to pg_result

* pg_result $res -foreach array code - iterate over tuples in a result handle

* fix compiler warnings
BUGZID:

flightaware/Pgtcl,flightaware/Pgtcl