lo_read

Function

Read data from a large object.

Prototype

int lo_read(PGconn* conn, int fd, char* buf, size_t len);

Parameter

Table 1 lo_read parameters

Keyword

Parameter Description

conn

A database connection

fd

File descriptor

buf

Read len bytes from the large object descriptor to buf

len

The length of data to be read

Return Value

int The number of bytes actually read is returned; this will be less than len if the end of the large object is reached first. In the event of an error, the return value is -1.

Example

For details, see Example.

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