There are two built-in registered functions, lo_import and lo_export which are convenient for use in SQL queries. Here is an example of their use
SQL 問い合わせにおいて役立つ、 lo_import と lo_export という 2 つの組み込み済みの登録された関数があります。これらの 使用例を以下に示します。
CREATE TABLE image ( name text, raster oid ); INSERT INTO image (name, raster) VALUES ('beautiful image', lo_import('/etc/motd')); SELECT lo_export(image.raster, "/tmp/motd") from image WHERE name = 'beautiful image';