Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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


pgsql-general by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group