Thread: indexing date and timestamp fields...

indexing date and timestamp fields...

From
"Alan T. Miller"
Date:
Does it make any sence to index a date field? I am guessing that PostgreSQL
has already optimized these fields???

Thanks in advance,

Alan



Re: indexing date and timestamp fields...

From
Tom Lane
Date:
"Alan T. Miller" <amiller@hollywood101.com> writes:
> Does it make any sence to index a date field?

Certainly.

> I am guessing that PostgreSQL has already optimized these fields???

What is your notion of "optimized"?  Date is not any more magic than any
other datatype in Postgres.

            regards, tom lane