Re: binary data storage

Поиск
Список
Период
Сортировка
От Devrim GUNDUZ
Тема Re: binary data storage
Дата
Msg-id Pine.LNX.4.44.0204041238500.9777-100000@oper.metu.edu.tr
обсуждение исходный текст
Ответ на Re: binary data storage  ("Marin Dimitrov" <marin.dimitrov@sirma.bg>)
Ответы Re: binary data storage
Список pgsql-general
Hi Marin,

On Thu, 4 Apr 2002, Marin Dimitrov wrote:

>
> search for "large objects" in the Programmer's Guide (
> http://www.ca.postgresql.org/users-lounge/docs/#7.2 )
>
> in your case Large Objects (chapter 2 from the Programmer's Guide) may be
> more appropriate than binary strings (chapter 3.4 from the User's Guide)
>

Thanks alot. Also searched php manual and wrote the following simple code:

<?
    $conn = Pg_Connect (......);
    pg_exec ($conn, "begin");
    $oid = pg_locreate ($conn);
    echo ("$oid\n");
    $handle = pg_loopen ($conn, $oid, "w");
    echo ("$handle\n");
    pg_loimport ("/etc.tar.gz");
    pg_lowrite ($handle, "/etc.tar.gz");
    pg_loclose ($handle);
    pg_exec ($conn, "commit");
?>

Ok, I can see that the data is placed under db directory... But where is
tha data kept? I mean, where is /etc.tar.gz ?

BEst regards,



Devrim GUNDUZ

devrim@oper.metu.edu.tr
devrim.gunduz@linux.org.tr
devrimg@tr.net

Web : http://devrim.oper.metu.edu.tr
------------------------------------------------------------------



В списке pgsql-general по дате отправления:

Предыдущее
От: "Marin Dimitrov"
Дата:
Сообщение: Re: binary data storage
Следующее
От: virka prasetia
Дата:
Сообщение: installation problem