Unix Technical Forum

Large Objects and Toast

This is a discussion on Large Objects and Toast within the Pgsql Performance forums, part of the PostgreSQL category; --> PostgreSQL: 8.2 My understanding is that when one creates a large object there is no way to link the ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql Performance

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-19-2008, 11:43 AM
Campbell, Lance
 
Posts: n/a
Default Large Objects and Toast

PostgreSQL: 8.2



My understanding is that when one creates a large object there is no way
to link the large object to a field in a table so that cascading delete
can occur. Is this correct? My understanding is that you have to
manually delete the large object.



I also read something about the OID ID being limited in size. What is
the size limit of this OID type? I am sure that it is bigger than the
number of files that I would be uploaded into my db; but I just want to
get an idea of the range.



When putting a reference to a large object in a table, should the type
of the reference object be OID?



Thanks,



Lance Campbell

Project Manager/Software Architect

Web Services at Public Affairs

University of Illinois

217.333.0382

http://webservices.uiuc.edu




Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-19-2008, 11:43 AM
Usama Dar
 
Posts: n/a
Default Re: Large Objects and Toast

On Dec 14, 2007 10:11 PM, Campbell, Lance <lance@uiuc.edu> wrote:

> PostgreSQL: 8.2
>
>
>
> My understanding is that when one creates a large object there is no way
> to link the large object to a field in a table so that cascading delete can
> occur. Is this correct? My understanding is that you have to manually
> delete the large object.
>


Yes, but you can setup a trigger to do that for you i think.

>
>
> I also read something about the OID ID being limited in size. What is the
> size limit of this OID type? I am sure that it is bigger than the number of
> files that I would be uploaded into my db; but I just want to get an idea of
> the range.
>


Oid is an unsigned integer in postgres IIRC.



--
Usama Munir Dar http://linkedin.com/in/usamadar
Consultant Architect
Cell:+92 321 5020666
Skype: usamadar

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com