I don't think you need to reset $row. It will be overwritten nicely when it is tested again in the while condition.
However, you may need to reset the pointer in the $results array, or indicate a specific row to fetch:
This will return values from 2 rows:
$arr = pg_fetch_array ($result, 0);
echo $arr[0];
$arr = pg_fetch_array ($result, 1);
echo $arr[0];
While this will return values from 1 row:
$arr = pg_fetch_array ($result, 0);
echo $arr[0];
$arr = pg_fetch_array ($result, 0);
echo $arr[0];
Haven't tested it though...
😕