RES: Improving SQL performance - Mailing list pgsql-performance

From Carlos H. Reimer
Subject RES: Improving SQL performance
Date
Msg-id PEEPKDFEHHEMKBBFPOOKKEENDNAA.carlos.reimer@opendb.com.br
Whole thread Raw
In response to Re: Improving SQL performance  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-performance
Yes, casting the result improved the time response a lot.

Thank you!

Reimer



> -----Mensagem original-----
> De: pgsql-performance-owner@postgresql.org
> [mailto:pgsql-performance-owner@postgresql.org]Em nome de Tom Lane
> Enviada em: quinta-feira, 11 de janeiro de 2007 16:31
> Para: carlos.reimer@opendb.com.br
> Cc: pgsql-performance@postgresql.org
> Assunto: Re: [PERFORM] Improving SQL performance
>
>
> "Carlos H. Reimer" <carlos.reimer@opendb.com.br> writes:
> > I know that the problem with the following SQL is the "LOG.CODCEP =
> > ENDE.CODCEP||CODLOG" condition, but what can I
> > do to improve the performance?
>
> Seems the problem is not using an index for tt_log.  Do you have an
> index on tt_log.codcep?  If so, maybe you need to cast the result of
> the concatenation to char(8) to get it to use the index.
>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Have you searched our list archives?
>
>                http://archives.postgresql.org
>
>

pgsql-performance by date:

Previous
From: "Gauri Kanekar"
Date:
Subject: Partitioning
Next
From: "Simon Riggs"
Date:
Subject: Re: [HACKERS] table partioning performance