Re: Explicit timestamp conversion very slow - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Explicit timestamp conversion very slow
Date
Msg-id 26129.1032182853@sss.pgh.pa.us
Whole thread Raw
In response to Explicit timestamp conversion very slow  ("Hamby, Mark CONTRACTOR HAMBYM" <MARK.HAMBY@LEAVENWORTH.ARMY.MIL>)
List pgsql-bugs
"Hamby, Mark CONTRACTOR HAMBYM" <MARK.HAMBY@LEAVENWORTH.ARMY.MIL> writes:
> /* QUERY WITH EXPLICIT TIMESTAMP CONVERSION */
> /* DOES NOT USE INDEX AND IS VERY SLOW. */
> /* DOES ANYONE CARE? */

Nope.

> explain analyze
>             select count(*)
>             from truth_units
>             where time = timestamp '2002-08-15 10:00'
>             ;

"timestamp" is "timestamp with time zone" in 7.2.  So this is an
unindexable cross-datatype comparison.

            regards, tom lane

pgsql-bugs by date:

Previous
From: David Lloyd
Date:
Subject: Re: [NOVICE] Postgres storing time in strange manner
Next
From: Tom Lane
Date:
Subject: Re: Unable to convert date to tm