Postgresql – Compound index with date function doesn't seem to work
I'm trying to use a compound index on a table to assist in creating daily report counts. My table looks like this: CREATE TABLE inquiries ( id bigint NOT NULL, identity_id bigint NOT NULL, received_at timestamp(0) without time zone NOT…