pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ramiro Arenas R <ramiroa@coordinadora.com>
To: pgsql-sql@postgresql.org
Subject: Unable to convert date to tm
Date: Tue, 10 Feb 2004 15:45:49 -0500
Message-ID: <1076445948.5346.12.camel@maxims.coordinadora.com> (raw)

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.








view thread (2+ messages)  latest in thread

Message-ID: <1076445948.5346.12.camel@maxims.coordinadora.com>
Permalink:  ../1076445948.5346.12.camel@maxims.coordinadora.com/
Also on:    postgresql.org/message-id/1076445948.5346.12.camel@maxims.coordinadora.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: ramiroa@coordinadora.com
  Subject: Re: Unable to convert date to tm
  In-Reply-To: <1076445948.5346.12.camel@maxims.coordinadora.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox