pg_lo_tell() returns current position (offset from the beginning of large object).
See also pg_lo_seek().