\lo_import
Stores the file into a PostgreSQL large object. Optionally, it associates the given comment with the object. Example:
Reading PG 18·Select a recorded version
- Client
- psql 18.7
- Case-sensitive spelling
- \lo_import
- command
- \lo_import
- manual path
- app-psql.html#APP-PSQL-META-COMMAND-LO-IMPORT
- modifiers
- Unknown
- signature
- \lo_import filename [ comment ]
- spellings
- \lo_import
Definition PG 18
\lo_importfilename[comment]Stores the file into a PostgreSQL large object. Optionally, it associates the given comment with the object. Example:
foo=>
\lo_import '/home/peter/pictures/photo.xcf' 'a picture of me'lo_import 152801The response indicates that the large object received object ID 152801, which can be used to access the newly-created large object in the future. For the sake of readability, it is recommended to always associate a human-readable comment with every object. Both OIDs and comments can be viewed with the
\lo_listcommand.Note that this command is subtly different from the server-side
lo_importbecause it acts as the local user on the local file system, rather than the server's user and file system.
Exact case-sensitive spellings
\lo_import
Spellings in this manual definition
| Command | Documented suffix modifiers |
|---|---|
| \lo_import | None listed in this signature |
Compare versions
Complete source facts
documentation revision
{"inputs":[{"file":"app-psql.html","kind":"same-version-reviewed-manual","locale":"en","sha256":"af50448485df02bdef2b72b8347192ba029c7082b8d0392ecb17db44ad533aaf","version":"18.7"},{"file":"app-psql.html","kind":"same-version-reviewed-manual","locale":"zh-Hans","sha256":"cb475c53a16d9e06358f5e6c9c5649645db92568cfd319f230c62c9f57ae090b","version":"18.7"}],"release":"18.7","runtime_remeasured":false,"source_revision":"pgdoc:b9f0e7232f60f380d642ac9b99226606c254b552"}Source references
Full definition and evidence JSON
Definition sources
center · PostgreSQL 18 · 1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915
Text language: en · 1b2d62b4845aa46374f2cb680f95d3392322cc8128646992ae4e18d0e7084915