lo_creat
Function
Create a large object.
Prototype
Oid lo_creat(PGconn* conn, int mode);
Parameter
Table 1 lo_creat parameters
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
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