Re: Slow queries in PL/PGSQL function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Gary Doades <gpd(at)cwcom(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Slow queries in PL/PGSQL function
Date: 2004-02-21 16:15:50
Message-ID: 12022.1077380150@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Gary Doades <gpd(at)cwcom(dot)net> writes:
> Is there someway to force the use of an index. Or at least get the
> backend to substitue the parameters in a function before doing the
> first query plan so it has more typical values to work with?

Could we see the EXPLAIN ANALYZE output for your problem query?
Table schemas (column data types and available indexes) are necessary
background for this type of question as well.

You might want to take the question to pgsql-performance, too ...
it's a tad off topic for -general.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Holger Marzen 2004-02-21 18:53:18 Binary data in PostgreSQL
Previous Message Henrik Farre 2004-02-21 12:18:45 Re: pg_dumpall dies