pg_lo_creat conn mode
Specifies a valid database connection.
Specifies the access mode for the large object
The oid of the large object created.
pg_lo_creat creates an Inversion Large Object.
mode can be any OR'ing together of INV_READ, INV_WRITE, and INV_ARCHIVE. The OR delimiter character is "|".
[pg_lo_creat $conn "INV_READ|INV_WRITE"]