size method

int size()

Returns the length of a large object

Implementation

int size() {
  psql.pq.lo_lseek(psql.conn, fd, 0, 2);
  int len = psql.pq.lo_tell(psql.conn, fd);
  psql.pq.lo_lseek(psql.conn, fd, 0, 0);
  return len;
}