Received: from localhost (maia-4.hub.org [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C197C9FBC7C for ; Fri, 27 Apr 2007 13:43:55 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 63075-05 for ; Fri, 27 Apr 2007 13:43:53 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from srv.ioprop3.com (unknown [207.58.142.186]) by postgresql.org (Postfix) with ESMTP id 009CC9FBFBD for ; Fri, 27 Apr 2007 13:43:52 -0300 (ADT) Received: (qmail 12498 invoked from network); 27 Apr 2007 12:19:04 -0400 Received: from localhost (HELO mailbox.etsy.com) (127.0.0.1) by localhost with SMTP; 27 Apr 2007 12:19:04 -0400 Received: from 209.51.183.100 (SquirrelMail authenticated user sid) by mailbox.etsy.com with HTTP; Fri, 27 Apr 2007 09:19:04 -0700 (PDT) Message-ID: <50516.209.51.183.100.1177690744.squirrel@mailbox.etsy.com> In-Reply-To: <15873.1177691157@sss.pgh.pa.us> References: <50444.209.51.183.100.1177687911.squirrel@mailbox.etsy.com> <15873.1177691157@sss.pgh.pa.us> Date: Fri, 27 Apr 2007 09:19:04 -0700 (PDT) Subject: Re: How can fixed and variable width columns perform similarly? From: "Siddharth Anand" To: "Tom Lane" Cc: sid@etsy.com, pgsql-performance@postgresql.org Reply-To: sid@etsy.com User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/477 X-Sequence-Number: 24354 Hi Tom, My question wasn't phrased clearly. Oracle exhibits a performance degradation for very large-sized fields (CLOB types that I equate to PostGres' text type) when compared with the performance of field types like varchar that handle a max character limit of a few thousand bytes in Oracle. It sounds like PostGres doesn't exhibit this same difference. I wanted to understand how this could be and whether there was a trade-off. Cheers! Sid > "Siddharth Anand" writes: >> How can a field that doesn't have a limit like "text" perform similarly >> to >> char varying(128), for example? At some point, we need to write data to >> disk. The more data that needs to be written, the longer the disk write >> will take, especially when it requires finding free sectors to write to. > > What's your point? If you're not going to put more than 128 characters > in the field, there's no difference in the amount of data involved. > > regards, tom lane > > ---------------------------(end of broadcast)--------------------------- > TIP 2: Don't 'kill -9' the postmaster >