Re: [GENERAL] Indice en Date

From: Alvaro Herrera <alvherre(at)commandprompt(dot)com>
To: Arturo <arturomunive(at)gmail(dot)com>
Cc: Postgresql <pgsql-es-ayuda(at)postgresql(dot)org>
Subject: Re: [GENERAL] Indice en Date
Date: 2007-05-02 01:13:50
Message-ID: 20070502011350.GG5867@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-es-ayuda pgsql-general

Arturo escribió:
> Alvaro Herrera escribió:
> >Arturo escribió:
> >
> >
> >>ahhhh eso es obvio... de todas formas mi duda era saber por que cuando
> >>ponia
> >>WHERE
> >>fecha < '11-Jan-2007'::date
> >>
> >>no usaba el indice
> >>
> >>y cuando ponia
> >>WHERE
> >>fecha::date < '11-Jan-2007'::date
> >>
> >>si lo hacía
> >>
> >>en ambos casos con igual numero de filas
> >>
> >
> >Es "fecha" una columna de tipo date, o es de otro tipo?
> >
> >
> si la columna es date asi esta declarada por me sorprendo por lo del indice

Puedes mostrar el EXPLAIN ANALYZE de ambos casos?

--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

In response to

Browse pgsql-es-ayuda by date

  From Date Subject
Next Message Alvaro Herrera 2007-05-02 01:25:36 Re: [GENERAL] Indice en Date
Previous Message Arturo 2007-05-02 00:42:39 Re: [GENERAL] Indice en Date

Browse pgsql-general by date

  From Date Subject
Next Message Alvaro Herrera 2007-05-02 01:25:36 Re: [GENERAL] Indice en Date
Previous Message Jamie Deppeler 2007-05-02 01:05:41 Re: PostgreSql replication and load balancing ( is Slony-I a solution?)