lo_creat

Function

Create a large object.

Prototype

Oid lo_creat(PGconn* conn, int mode);

Parameter

Table 1 lo_creat parameters

Keyword

Parameter Description

conn

A database connection

mode

Specify read-only, write only, or read-write, deprecated, will be ignored in use, parameter retained for compatibility with older versions

Return Value

oid The return value is the OID that was assigned to the new large object, or InvalidOid (zero) on failure.

lo_create

Function

Creating a large object with a specified OID will result in an error if the OID is already in use by a large object.

Prototype

Oid lo_create(PGconn* conn, Oid lobjId);

Parameter

Table 1 lo_create parameter

Keyword

Parameter Description

conn

A database connection

lobjId

The oid of the large object to be created

Return Value

oid The return value is the OID that was assigned to the new large object, or InvalidOid (zero) on failure.

Example

For details, see Example.

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