X-Original-To: pgsql-performance-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 82F57D80DD for ; Mon, 10 Oct 2005 08:24:15 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18434-04 for ; Mon, 10 Oct 2005 11:24:08 +0000 (GMT) Received: from ki-communication.com (unknown [202.147.194.21]) by svr1.postgresql.org (Postfix) with ESMTP id CD928D7F3F for ; Mon, 10 Oct 2005 08:24:05 -0300 (ADT) Received: from iacn01wks ([192.168.0.128]) by ki-communication.com with Microsoft SMTPSVC(6.0.3790.1830); Mon, 10 Oct 2005 18:28:17 +0700 From: "Ahmad Fajar" To: "'Cristian Prieto'" Cc: Subject: Re: Text/Varchar performance... Date: Mon, 10 Oct 2005 18:28:23 +0700 Keywords: Postgresql MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.6353 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Thread-Index: AcXJ2Z4us8IFwjmGTVOiJdhYl6kVMADs2VkQ In-Reply-To: <20051005182803.0E6B0100E5@mail.clickdiario.com> Message-ID: X-OriginalArrivalTime: 10 Oct 2005 11:28:17.0968 (UTC) FILETIME=[B621D300:01C5CD8D] X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.379 required=5 tests=[AWL=-0.113, DNS_FROM_RFC_WHOIS=0.492] X-Spam-Level: X-Archive-Number: 200510/160 X-Sequence-Number: 14928 Dear Cristian, If you need to index the field, you must know that it limit the length up to 1000 bytes. So if you need to index the field you must limit the field type, ex: varchar(250), than you can index the field and you can gain better perfomance in searching base on the fields, because the search uses the index you have been created. If you do not need to index the field, you can use the text field. Because text field can store data up to 4 Gbytes. Regards, ahmad fajar -----Original Message----- From: pgsql-performance-owner@postgresql.org [mailto:pgsql-performance-owner@postgresql.org] On Behalf Of Cristian Prieto Sent: Kamis, 06 Oktober 2005 1:22 To: pgsql-general@postgresql.org; pgsql-performance@postgresql.org Subject: [PERFORM] Text/Varchar performance... Hello, just a little question, It's preferable to use Text Fields or varchar(255) fields in a table? Are there any performance differences in the use of any of them? Thanks a lot for your answer! ---------------------------(end of broadcast)--------------------------- TIP 4: Have you searched our list archives? http://archives.postgresql.org