Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 504D29FA173 for ; Fri, 1 Dec 2006 11:16:27 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 15368-05 for ; Fri, 1 Dec 2006 11:16:13 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 521449FA12B for ; Fri, 1 Dec 2006 11:16:19 -0400 (AST) 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 kB1FGH6E015881; Fri, 1 Dec 2006 10:16:17 -0500 (EST) To: Alessandro Baretta cc: pgsql-performance@postgresql.org Subject: Re: NAMEDATALEN and performance In-reply-to: <456FEE09.40905@studio.baretta.com> References: <456D6FAB.4030400@studio.baretta.com> <19764.1164815445@sss.pgh.pa.us> <456FEE09.40905@studio.baretta.com> Comments: In-reply-to Alessandro Baretta message dated "Fri, 01 Dec 2006 09:55:37 +0100" Date: Fri, 01 Dec 2006 10:16:17 -0500 Message-ID: <15880.1164986177@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200612/6 X-Sequence-Number: 22062 Alessandro Baretta writes: > ... I would like to receive some > insight on the implications of such a choice. Beside the fact that the parser > has more work to do to decipher queries and whatnot, what other parts of the > server would be stressed by a verbose naming scheme? Where should I expect the > bottlenecks to be? I suppose the thing that would be notable is bloat in the size of the system catalogs and particularly their indexes; hence extra I/O. > Also, I could imagine a solution where I split the names in a schema part and a > local name, thereby refactoring my namespace. I'd get the approximate effect of > doubling namedatalen, but at the expense of having a much wider searchpath. This might be worth thinking about, simply because it'd avoid the need for custom executables. regards, tom lane