To truncate a large object to a given length, call
-int lo_truncate(PGcon *conn, int fd, size_t len);
+int lo_truncate(PGconn *conn, int fd, size_t len);
This function truncates the large object
descriptor
fd to length
len. The
When dealing with large objects that might exceed 2GB in size,
instead use
-int lo_truncate64(PGcon *conn, int fd, pg_int64 len);
+int lo_truncate64(PGconn *conn, int fd, pg_int64 len);
This function has the same
behavior as lo_truncate, but it can accept a