lo_open

Function

Open an existing large object for reading and writing.

Prototype

int lo_open(PGconn* conn, Oid lobjId, int mode);

Parameter

Table 1 lo_open parameters

Keyword

Parameter Description

conn

A database connection

lobjId

The OID of the large object to be opened

mode

Control read-only, write only, or read-write after opening an object

Return Value

int Returns nonnegative file descriptor on success and -1 on failure.

Example

For details, see Example.

Feedback
编组 3备份
    openGauss 2024-12-26 01:07:08
    cancel