X-Original-To: pgsql-docs-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 39DBE9FA646 for ; Sun, 11 Jun 2006 00:15:26 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 53732-07 for ; Sun, 11 Jun 2006 00:15:16 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id A55269FA5FB for ; Sun, 11 Jun 2006 00:15:16 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id 7159D5644A; Sat, 10 Jun 2006 22:15:15 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Sat, 10 Jun 2006 22:15:14 -0500 Date: Sat, 10 Jun 2006 22:15:14 -0500 From: "Jim C. Nasby" To: Tom Lane Cc: Christopher Browne , pgsql-docs@postgresql.org Subject: Re: [GENERAL] TOAST not working Message-ID: <20060611031514.GB34196@pervasive.com> References: <1149944622.15368.38.camel@vaio1linux> <87bqt03efl.fsf@wolfe.cbbrowne.com> <20060611021215.GC83625@pervasive.com> <4763.1149994729@sss.pgh.pa.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4763.1149994729@sss.pgh.pa.us> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060611:tgl@sss.pgh.pa.us::+46LM9oOPgjeJtw1:00000000000000000000 0000000000000000000000000M9u X-Hashcash: 1:20:060611:cbbrowne@acm.org::6h4Uzm6+bLr8Al5H:02T1H X-Hashcash: 1:20:060611:pgsql-docs@postgresql.org::pEJF9auhusz3Bq7D:000000000000 0000000000000000000000001zMS X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/4 X-Sequence-Number: 3587 Dropping -general On Sat, Jun 10, 2006 at 10:58:49PM -0400, Tom Lane wrote: > "Jim C. Nasby" writes: > > Actually, it's BLCKSZ/4. From > > http://www.postgresql.org/docs/8.1/interactive/storage-toast.html: > > > "The TOAST code is triggered only when a row value to be stored in a > > table is wider than BLCKSZ/4 bytes (normally 2Kb)." > > > BTW, 'row value' seems a bit prone to confusion (could be interpreted as > > the row itself). It'd probably be better to say 'field'. > > No, because that would be wrong; the statement is correct as written. > The toaster tries to do something about rows that are wider than > BLCKSZ/4 (well, actually MaxTupleSize/4 ... try grepping the source > for TOAST_TUPLE_THRESHOLD). I'll argue that the docs are still confusing though, since 'row value' could be interpreted as 'field', especially since the first paragraph contains "In release 7.1 and later, this limit is overcome by allowing large field values to be compressed and/or broken up into multiple physical rows." -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461