RefLib

Reference library for AI

Back

postgresql_16:5.2.3.3 Exporting a Large Object

PostgreSQL 16 > Client Interfaces > Large Objects > Client Interfaces > Exporting a Large Object

To export a large object into an operating system file, call int lo_export(PGconn *conn, Oid lobjId, const char *filename); The lobjId argument specifies the OID of the large object to export and the filename argument specifies the operating system name of the file. Note that the file is written by the client interface library, not by the server. Returns 1 on success, -1 on failure.

Back