Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TbvZe-0000EI-KU for pgsql-bugs@postgresql.org; Fri, 23 Nov 2012 15:53:50 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TbvZd-0002vw-DR for pgsql-bugs@postgresql.org; Fri, 23 Nov 2012 15:53:49 +0000 Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.5/8.14.5) with ESMTP id qANFrm2K019760; Fri, 23 Nov 2012 10:53:48 -0500 (EST) From: Tom Lane To: Euler Taveira cc: Pavel Stehule , Greg Sabino Mullane , pgsql-bugs@postgresql.org, pgsql-general@postgresql.org Subject: Re: [GENERAL] Prepared Statement Name Truncation In-reply-to: <50AF574C.5040809@timbira.com> References: <18330.1353283998@sss.pgh.pa.us> <7c1ee6d7b0d3821da2f2d19b8f526649@biglumber.com> <50AF574C.5040809@timbira.com> Comments: In-reply-to Euler Taveira message dated "Fri, 23 Nov 2012 09:00:28 -0200" Date: Fri, 23 Nov 2012 10:53:48 -0500 Message-ID: <19759.1353686028@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201211/182 X-Sequence-Number: 34740 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, but that would be rather catastrophic because of the code's habit of overlaying C structures onto catalog rows. regards, tom lane