"Dick Wieland" <dick.wieland@wiline.com> writes:
> another question is . how does one use \lo_import in psql?
See the psql man page, about halfway down --- the \lo_xxx commands are
in alphabetical order along with the other backslash commands, under
the heading "Meta-Commands".
> and finally
> the test program does not run on a remote database.
It would if you ran it as postgres superuser ;-). But realistically you
probably want to import/export files to your own filesystem, not the
server's filesystem. For this you want client-side operations ---
either psql's \lo_xxx commands, or the libpq large-object functions they
are built upon.
regards, tom lane