Re: index on timestamp performance - Mailing list pgsql-general

From Tom Lane
Subject Re: index on timestamp performance
Date
Msg-id 27254.1043859604@sss.pgh.pa.us
Whole thread Raw
In response to index on timestamp performance  (Eric Cholet <cholet@logilune.com>)
List pgsql-general
Eric Cholet <cholet@logilune.com> writes:
> Consequently would I gain performance if I changed the
> schema so that 'date' is an integer

No, you wouldn't, at least not enough to notice.  (But if you only need
a date and not a time of day, consider changing the column type to
"date".)

I suspect the issue is selectivity of the queries, but with no actual
query examples or EXPLAIN ANALYZE results to look at, that's just idle
speculation.

            regards, tom lane

pgsql-general by date:

Previous
From: Lincoln Yeoh
Date:
Subject: Re: Firewalls and Postgres
Next
From: Eric Cholet
Date:
Subject: Re: index on timestamp performance