[PERFORM] EXPLAIN detail

2008-04-09 Thread Luigi N. Puleio
Hello everyone!! I have a table with 17 columns and it has almost 53 records and doing just a SELECT * FROM table with the EXPLAIN ANALYZE I get: Seq Scan on table (cost=0.00...19452.95 rows=529395 width=170) (actual time=0.155...2194.294 rows=529395 loops=1) total runtime=3679.039 ms and

Re: [PERFORM] EXPLAIN detail

2008-04-09 Thread Luigi N. Puleio
--- Pavan Deolasee <[EMAIL PROTECTED]> wrote: > On Wed, Apr 9, 2008 at 3:21 PM, Luigi N. Puleio > <[EMAIL PROTECTED]> wrote: > > Hello everyone!! > > > > I have a table with 17 columns and it has almost > > 53 records and doing just a > > &g

Re: [PERFORM] EXPLAIN detail

2008-04-09 Thread Luigi N. Puleio
>> SELECT >> (a.column1)::date, MIN(b.column2) - a.column2 >> FROM >> table a >> inner join table b >> on ((a.column1)::date = (b.column1)::date amd >> b.column3 = 'b' and (b.column1)::time without time >> zone >= (a.column1)::time without time zone) >> WHERE >> (a.colum

Re: [PERFORM] EXPLAIN detail

2008-04-09 Thread Luigi N. Puleio
>> With all that casting, is it possible that appropriate indexes aren't >> being used because your WHERE / ON clauses aren't an exact type match >> for the index? > > You mean to put an index on date with timestamptz datatype column?... > Er ... I'm not quite sure what you mean. Do you mean an i