lo_read??

From: bdamato <bdamato(at)coxtarget(dot)com>
To: "pgsql-general(at)hub(dot)org" <pgsql-general(at)hub(dot)org>
Subject: lo_read??
Date: 1998-06-29 19:15:30
Message-ID: 3597E7D1.FD0B4F11@coxtarget.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

i have been able to import large objects into my database using

psql -c "insert into foo VALUES ('info', 'more info',
lo_import('/path/to/file'))"

where the last field in foo is an Oid.

How do i read that large object using psql?
i suspected it would be something like...

psql -c "select (lo_read(Oid)) from foo"

but I was wrong. Has anyone done this with psql?

bobd

Browse pgsql-general by date

  From Date Subject
Next Message Joao Paulo Felix 1998-06-30 02:10:57 LIKE (SQL operator)
Previous Message Brett W. McCoy 1998-06-29 14:27:12 Re: [GENERAL] LIKE (SQL operator)