Re: lo_import - Mailing list pgsql-general

From Cornelia Boenigk
Subject Re: lo_import
Date
Msg-id 002c01c24150$04a1d8e0$7f54fea9@zwerg98
Whole thread Raw
In response to lo_import  (Patrick Nelson <pnelson@neatech.com>)
List pgsql-general
Hi Patrick


docgen=# CREATE TABLE fotos (name CHAR(15), bild OID);
CREATE
docgen=# INSERT INTO fotos VALUES
docgen-# ('eule',lo_import('/home/conni/eule.gif'));
INSERT 18999 1
docgen=# SELECT * FROM fotos;
 name              |  bild
-------------------+----------
 eule             | 18999
(1 row)

docgen=#  SELECT lo_export(fotos.bild, '/tmp/euleout.gif')
docgen-# FROM fotos WHERE name = 'eule';
 lo_export
-----------
         1
(1 row)

docgen=# SELECT lo_unlink(fotos.bild) FROM fotos WHERE name = 'eule';
 lo_unlink
-----------
         1
(1 row)

Regards
Conni


pgsql-general by date:

Previous
From: Michael Meskes
Date:
Subject: Re: preprosessor help
Next
From: "Cornelia Boenigk"
Date:
Subject: Re: libpq