test => CREATE TABLE imagenes (id serial NOT NULL, nombre character varying(60) NOT NULL, imagen oid NOT NULL);
CREATE TABLE
test => \lo_import '/tmp/img.jpg';
lo_import 17247 1
test => INSERT INTO imagenes (nombre, imagen) VALUES ('Test Img', 17247);
INSERT 17247 1