X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 9C5AA11F60A6 for ; Sat, 29 Apr 2006 21:08:10 -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 83088-07 for ; Sat, 29 Apr 2006 21:08:07 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 1634F11F6091 for ; Sat, 29 Apr 2006 21:08:05 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 5F7A130F4E; Sun, 30 Apr 2006 02:08:05 +0200 (MET DST) From: "Bert" X-Newsgroups: pgsql.performance Subject: Re: Easy question Date: 29 Apr 2006 17:07:59 -0700 Organization: http://groups.google.com Lines: 9 Message-ID: <1146355679.311472.57800@u72g2000cwu.googlegroups.com> References: <1145741653.759727.38970@e56g2000cwe.googlegroups.com> <1146101167.724196.253740@v46g2000cwv.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Complaints-To: groups-abuse@google.com In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.2) Gecko/20060308 Firefox/1.5.0.2,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: u72g2000cwu.googlegroups.com; posting-host=200.114.70.217; posting-account=I3Q4Kw0AAAB5qSAosGYN-4vsrNRUrVAS To: pgsql-performance@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200605/71 X-Sequence-Number: 18858 No i didn't defined any indexes for the table, I know the performance will increase with an index, but this was not my question. My question furthermore belongs to the access mode of the SQL statement. Furthermore i do not understand why the Upper function should increase the performance. The table has approximately 20.000 entries. Is it the best way to use a B-Tree index on the municipio column in this case or are there better solution to do this.