X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5305A9FA621 for ; Thu, 8 Jun 2006 12:55:13 -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 72687-02 for ; Thu, 8 Jun 2006 12:55:04 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 9C1C49F9EF3 for ; Thu, 8 Jun 2006 12:55:04 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k58Ft2tG028213; Thu, 8 Jun 2006 11:55:03 -0400 (EDT) To: "Jim C. Nasby" cc: Ludek Finstrle , pgsql-admin@postgresql.org Subject: Re: Maximum text and bytea size? In-reply-to: <20060608153750.GN45331@pervasive.com> References: <20060608091802.GA32622@soptik.pzkagis.cz> <20060608153750.GN45331@pervasive.com> Comments: In-reply-to "Jim C. Nasby" message dated "Thu, 08 Jun 2006 10:37:50 -0500" Date: Thu, 08 Jun 2006 11:55:02 -0400 Message-ID: <28212.1149782102@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/58 X-Sequence-Number: 22020 "Jim C. Nasby" writes: > On Thu, Jun 08, 2006 at 11:18:02AM +0200, Ludek Finstrle wrote: >> I read this value in TOAST section. Is my opinion correct? > From http://www.postgresql.org/docs/8.1/interactive/storage-toast.html: > "TOAST usurps the high-order two bits of the varlena length word, > thereby limiting the logical size of any value of a TOAST-able data type > to 1Gb (2^30 - 1 bytes)." > There was a proposal made some time ago to allow for a variable-length > length word format, where one of the bits in each word would specify > that there was an additional length word. Hm, I don't remember that. It seems rather pointless, as I'm quite sure that the *practical* limit is a great deal less than 1Gb. Has anyone done any performance testing of GB-sized toasted values? regards, tom lane