Next: , Previous: , Up: Data exchange   [Index]


7.3.3 Importing large objects into a database

Loadable Function: oid = pq_lo_import (connection, path)

Imports the file in path on the client side as a large object into the database associated with connection and returns the Oid of the new large object. If path ends with a |, it is take as a shell command whose output is piped into a large object.