Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tbvpk-0002kl-TE; Fri, 23 Nov 2012 16:10:29 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1Tbvpi-0003DB-H4; Fri, 23 Nov 2012 16:10:27 +0000 Received: from sc9-mailhost2.vmware.com (sc9-mailhost2.vmware.com [10.113.161.72]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 180DD28310; Fri, 23 Nov 2012 08:10:25 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost2.vmware.com (Postfix) with ESMTP id 140DBB02FE; Fri, 23 Nov 2012 08:10:25 -0800 (PST) Received: from localhost (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id EDD861219CB; Fri, 23 Nov 2012 08:11:06 -0800 (PST) X-Virus-Scanned: amavisd-new at zcs-prod-ext-mta-1.vmware.com Received: from zcs-prod-ext-mta-1.vmware.com ([127.0.0.1]) by localhost (zcs-prod-ext-mta-1.vmware.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id WQXUGXPRxEkX; Fri, 23 Nov 2012 08:11:06 -0800 (PST) Received: from [192.168.1.90] (unknown [10.113.62.14]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA id 7B3B41219C9; Fri, 23 Nov 2012 08:11:05 -0800 (PST) Message-ID: <50AF9FEA.4090004@vmware.com> Date: Fri, 23 Nov 2012 18:10:18 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10 MIME-Version: 1.0 To: Tom Lane CC: Euler Taveira , Pavel Stehule , Greg Sabino Mullane , pgsql-bugs@postgresql.org, pgsql-general@postgresql.org Subject: Re: [GENERAL] Prepared Statement Name Truncation References: <18330.1353283998@sss.pgh.pa.us> <7c1ee6d7b0d3821da2f2d19b8f526649@biglumber.com> <50AF574C.5040809@timbira.com> <19759.1353686028@sss.pgh.pa.us> In-Reply-To: <19759.1353686028@sss.pgh.pa.us> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.3 (-------) X-Archive-Number: 201211/183 X-Sequence-Number: 34741 On 23.11.2012 17:53, Tom Lane wrote: > Euler Taveira writes: >> On 22-11-2012 04:27, Pavel Stehule wrote: >>>> significantly larger catalog > >> Less than 5% of catalog columns? I don't buy your argument. > > It's not about count, it's about size. For instance, pg_attribute > currently requires 140 bytes per row (counting the tuple header and > line pointer), so adding 64 bytes would represent 45% bloat. In > a database with lots of tables that would be painful. > > We could avoid this problem if we were prepared to make type "name" > be varlena, ... It would actually be nice to do that because it would *reduce* the amount of space and memory used for the catalogs in the typical case, where the attribute names are much smaller than 64 bytes. I received a complaint just the other day that our backend processes consume a lot of memory, even when idle; the catalog caches are a large part of that. - Heikki