| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Tatsuo Ishii <ishii(at)postgresql(dot)org> |
| Cc: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Re: Proposal: new large object API |
| Date: | 2008-03-21 15:45:11 |
| Message-ID: | 22799.1206114311@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Tatsuo Ishii <ishii(at)postgresql(dot)org> writes:
> Ok, here is the revised patch.
This looks sane to me, but I'd suggest leaving out the mention of 8.4
in the docs. Actually, I'm not sure you need a paragraph at all ---
just adding an example would be enough, I think.
SELECT lo_unlink(173454); -- deletes large object with OID 173454
INSERT INTO image (name, raster)
VALUES ('beautiful image', lo_import('/etc/motd'));
+
+ INSERT INTO image (name, raster) -- same as above, but specify OID to use
+ VALUES ('beautiful image', lo_import('/etc/motd', 68583));
SELECT lo_export(image.raster, '/tmp/motd') FROM image
WHERE name = 'beautiful image';
</programlisting>
regards, tom lane
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2008-03-21 15:47:52 | Re: Commit Fest (was Re: Sort Refinement) |
| Previous Message | Tom Lane | 2008-03-21 15:30:34 | Re: Commit Fest (was Re: Sort Refinement) |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2008-03-21 15:53:01 | Re: Auto Partitioning Patch - WIP version 1 |
| Previous Message | Bruce Momjian | 2008-03-21 15:18:41 | Re: Auto Partitioning Patch - WIP version 1 |