From: | Devrim GUNDUZ <devrim(at)oper(dot)metu(dot)edu(dot)tr> |
---|---|
To: | Marin Dimitrov <marin(dot)dimitrov(at)sirma(dot)bg> |
Cc: | PostgreSQL Mailing Lists-General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: binary data storage |
Date: | 2002-04-04 09:42:27 |
Message-ID: | Pine.LNX.4.44.0204041238500.9777-100000@oper.metu.edu.tr |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)oper(dot)metu(dot)edu(dot)tr
devrim(dot)gunduz(at)linux(dot)org(dot)tr
devrimg(at)tr(dot)net
Web : http://devrim.oper.metu.edu.tr
------------------------------------------------------------------
From | Date | Subject | |
---|---|---|---|
Next Message | TPCCUVA | 2002-04-04 10:31:14 | checkpoint log |
Previous Message | Marin Dimitrov | 2002-04-04 09:36:42 | Re: binary data storage |