lo_tell

Function

Obtain the current read or write position of a large object descriptor.

Prototype

int lo_tell(PGconn* conn, int fd);

Parameter

Table 1 lo_tell parameters

Keyword

Parameter Description

conn

A database connection

fd

File descriptor

Return Value

int Returns -1 on failure.

lo_tell64

Function

Truncate a large object that may exceed 2GB in size to a given length.

Prototype

long int lo_tell64(PGconn *conn, int fd);

Parameter

Table 1 lo_tell64 parameter

Keyword

Parameter Description

conn

A database connection

fd

File descriptor

Return Value

int Returns -1 on failure.

Example

For details, see Example.

Feedback
编组 3备份
    openGauss 2024-05-19 00:42:09
    cancel