X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 5AD48D1D283 for ; Tue, 10 Feb 2004 20:46:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 83852-08 for ; Tue, 10 Feb 2004 16:46:06 -0400 (AST) Received: from internet.coordinadora.com (coordinadora.com.co [200.75.49.82]) by svr1.postgresql.org (Postfix) with ESMTP id C1586D1B57C for ; Tue, 10 Feb 2004 16:46:04 -0400 (AST) Received: from maxims.coordinadora.com (localhost [127.0.0.1]) by internet.coordinadora.com (Postfix) with ESMTP id E3B33EF897 for ; Tue, 10 Feb 2004 15:45:48 -0500 (COT) Subject: Unable to convert date to tm From: Ramiro Arenas R To: pgsql-sql@postgresql.org Content-Type: text/plain Organization: Coordinadora Mercantil S.A Message-Id: <1076445948.5346.12.camel@maxims.coordinadora.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.4-8mdk Date: Tue, 10 Feb 2004 15:45:49 -0500 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200402/171 X-Sequence-Number: 16861 Hi I have a column x in a table of type date and i have an index on x runing the query "SELECT * FROM table WHERE x >= '2004-01-01" i get this: Unable to convert date to tm where using a cast like this: "SELECT * FROM table WHERE x >='2004-01-01::timestamp" result is ok but it doesn't use index. Thanks in advance.