Ken Corey writes:
> It sounds easiest to me to just punt and number the rows as they are returned
> in my calling application...
The rows are automatically numbered. In libpq, you'd use
PQgetvalue(result, rownumber, fieldnumber). Other interfaces have similar
functions. If the interface has a "fetch"-like approach, it seems trivial
to keep a counter.
--
Peter Eisentraut peter_e(at)gmx(dot)net http://yi.org/peter-e/