X-Original-To: pgsql-admin@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id C44E347580B for ; Sat, 22 Feb 2003 13:01:25 -0500 (EST) Received: from postgresql.org ([64.49.215.8]) by localhost (postgresql.org [64.49.215.8:10024]) (amavisd-new) with SMTP id 01771-05 for ; Sat, 22 Feb 2003 13:01:15 -0500 (EST) Received: from news.hub.org (news.hub.org [64.49.215.80]) by postgresql.org (Postfix) with ESMTP id 4C1D3475C98 for ; Sat, 22 Feb 2003 12:55:51 -0500 (EST) Received: by news.hub.org (Postfix, from userid 8) id 2F02843A929; Sat, 22 Feb 2003 12:55:51 -0500 (EST) From: "Gaetano Mendola" X-Newsgroups: comp.databases.postgresql.admin Subject: index not used in ( varchar = text ) Date: Sat, 22 Feb 2003 18:55:52 +0100 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 17 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-admin@postgresql.org X-Virus-Scanned: by amavisd-new X-Archive-Number: 200302/358 X-Sequence-Number: 7556 Hi all, why in Postgresql 7.3.2 in a select like: SELECT * FROM user_login WHERE login = 'FOO'::text; and login is a VARCHAR the index on login is not used anymore ? Ciao Gaetano