The filename argument specifies the <acronym>UNIX</acronym> pathname of
specifies the <acronym>Unix</acronym> pathname of
the file to be imported as a large object.
the file to be imported as a large object.
</para>
</para>
</sect2>
</sect2>
<sect2>
<sect2>
<title>Exporting a Large Object</title>
<title>Exporting a Large Object</title>
<para>
<para>
To export a large object
To export a large object
into <acronym>UNIX</acronym> file, call
into <acronym>Unix</acronym> file, call
<programlisting>
<synopsis>
int lo_export(PGconn *conn, Oid lobjId, text *filename)
int lo_export(PGconn *<replaceable class="parameter">conn</replaceable>, Oid <replaceable class="parameter">lobjId</replaceable>, text *<replaceable class="parameter">filename</replaceable>)
</programlisting>
</synopsis>
The lobjId argument specifies the Oid of the large
The lobjId argument specifies the Oid of the large
object to export and the filename argument specifies
object to export and the filename argument specifies
the <acronym>UNIX</acronym> pathname of the file.
the <acronym>Unix</acronym> pathname of the file.
</para>
</para>
</sect2>
</sect2>
<sect2>
<sect2>
<title>Opening an Existing Large Object</title>
<title>Opening an Existing Large Object</title>
<para>
<para>
To open an existing large object, call
To open an existing large object, call
<programlisting>
<programlisting>
int lo_open(PGconn *conn, Oid lobjId, int mode, ...)
int lo_open(PGconn *conn, Oid lobjId, int mode, ...)