Received: from localhost (unknown [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id D3A552E0236 for ; Sun, 16 Dec 2007 16:34:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 35794-09 for ; Sun, 16 Dec 2007 16:33:57 -0400 (AST) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by postgresql.org (Postfix) with ESMTP id 838032E0203 for ; Sun, 16 Dec 2007 16:34:00 -0400 (AST) Received: by nf-out-0910.google.com with SMTP id f5so975962nfh.23 for ; Sun, 16 Dec 2007 12:33:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=kCIgtBdOMNL4Y7sIvaMy+VtAon10rH6U6zIEoTEFO0E=; b=DInAmd0dpkttl5KXGOTPslE02RnxSf1nOleuxoaUONQGppkZNVRajMpeWq9MgvMYiAC8zzEHCtD6whWiGZuq9s5NaXWJhno7JodD/9TPNMy6jIheq1LXAfA3HvyndnFCNB17TUwAhhvqqfo9sQIBlbX1EL2GLM9+DGQ1WDNpClY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=kLThyV7z5B+AhfpTVXQl82QMA5hnYmQf4BmDaeRg4vJsCDbt00y5evWIaynYEwFi4QuJ12CCnhtgq5iJdl19VUHefxwZdnUWFsITsJIIJYMk18ZY8DU9enBsMvkxmVyApjKMvo1GD+hbt2VF0YCCKwM66RsYiAXe5kE8r7xaLfI= Received: by 10.78.185.15 with SMTP id i15mr7294289huf.15.1197837238751; Sun, 16 Dec 2007 12:33:58 -0800 (PST) Received: by 10.78.151.9 with HTTP; Sun, 16 Dec 2007 12:33:58 -0800 (PST) Message-ID: Date: Mon, 17 Dec 2007 01:33:58 +0500 From: "Usama Dar" To: "Campbell, Lance" Subject: Re: Large Objects and Toast Cc: pgsql-performance@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_5766_12685372.1197837238691" References: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/250 X-Sequence-Number: 28066 ------=_Part_5766_12685372.1197837238691 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Dec 14, 2007 10:11 PM, Campbell, Lance 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 ------=_Part_5766_12685372.1197837238691 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

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
------=_Part_5766_12685372.1197837238691--