From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | "Gavin M(dot) Roy" <gmr(at)myyearbook(dot)com> |
Cc: | "Tom Lane" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-performance(at)postgresql(dot)org |
Subject: | Re: SQL Function Slowness, 8.3.0 |
Date: | 2008-04-16 18:58:08 |
Message-ID: | 20080416115808.60e2d984@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-performance |
On Wed, 16 Apr 2008 14:44:40 -0400
"Gavin M. Roy" <gmr(at)myyearbook(dot)com> wrote:
> After detailed examination of pg_stat_user_indexes usage, it's clear
> that the functions don't use the same indexes. I've casted
> everything to match the indexes in the SQL function, to no success.
> Any suggestions on next steps? Maybe for 8.4 we could find a way to
> explain analyze function internals ;-)
> Gavin
To quote Tom in the appropriate bottom posting method:
> >
> > Without a specific example this discussion is pretty content-free,
> > but in general SQL functions face the same hazards of bad
> > parameterized plans as plpgsql functions do.
> >
> > regards, tom lane
> >
Sincerely,
Joshua D. Drake
--
The PostgreSQL Company since 1997: http://www.commandprompt.com/
PostgreSQL Community Conference: http://www.postgresqlconference.org/
United States PostgreSQL Association: http://www.postgresql.us/
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
From | Date | Subject | |
---|---|---|---|
Next Message | Greg Smith | 2008-04-16 19:45:22 | Re: Background writer underemphasized ... |
Previous Message | Gavin M. Roy | 2008-04-16 18:44:40 | Re: SQL Function Slowness, 8.3.0 |