Re: Interesting speed anomaly

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Zoltan Boszormenyi <zboszor(at)dunaweb(dot)hu>
Cc: PG Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Interesting speed anomaly
Date: 2005-12-14 15:48:05
Message-ID: 19749.1134575285@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Zoltan Boszormenyi <zboszor(at)dunaweb(dot)hu> writes:
> $ time echo "select * from v_invoice_browse where code||inv_no = 'CARO200000020'" | dbaccess db

> Is there a way to speed this operation up?

Make an expression index on "code||inv_no", if you think this case is
important enough to be worth maintaining an extra index for.

(This is not on-topic for -hackers, IMHO. Try pgsql-perform.)

regards, tom lane

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2005-12-14 15:55:34 Re: Immodest Proposal: pg_catalog.pg_ddl
Previous Message Tom Lane 2005-12-14 15:39:43 Re: Immodest Proposal: pg_catalog.pg_ddl