Re: [PERFORM] Perfrmance Problems (7.4.6)

2006-04-20 Thread Ruben Rubio Rey
, April 20, 2006 12:49 PM To: Doron Baranes; pgsql-performance@postgresql.org Subject: Re: [PERFORM] Perfrmance Problems (7.4.6) I think that the problem is the GROUP BY (datetime) that is date_trunc('hour'::text, i.entry_time) You should create an indexe with this expression (if its possib

Re: [PERFORM] Perfrmance Problems (7.4.6)

2006-04-20 Thread Doron Baranes
Subject: Re: [PERFORM] Perfrmance Problems (7.4.6) I think that the problem is the GROUP BY (datetime) that is date_trunc('hour'::text, i.entry_time) You should create an indexe with this expression (if its possible). http://www.postgresql.org/docs/7.4/interactive/indexes-expressional.html

Re: [PERFORM] Perfrmance Problems (7.4.6)

2006-04-20 Thread Ruben Rubio Rey
I think that the problem is the GROUP BY (datetime) that is date_trunc('hour'::text, i.entry_time) You should create an indexe with this expression (if its possible). http://www.postgresql.org/docs/7.4/interactive/indexes-expressional.html If is not possible, I would create a column with value

[PERFORM] Perfrmance Problems (7.4.6)

2006-04-20 Thread Doron Baranes
Hi, I am running on postgres 7.4.6. I did a vacuum analyze on the database but there was no change. I Attached here a file with details about the tables, the queries and the Explain analyze plans. Hope this can be helpful to analyze my problem 10x Doron TABLES