| From: | "Merlin Moncure" <mmoncure(at)gmail(dot)com> |
|---|---|
| To: | "Jan Danielsson" <jan(dot)m(dot)danielsson(at)gmail(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: CREATE FUNCTION ... performance boost? |
| Date: | 2007-06-29 16:27:26 |
| Message-ID: | b42b73150706290927s27849e10lfba39bf93d79eaf1@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
On 6/29/07, Jan Danielsson <jan(dot)m(dot)danielsson(at)gmail(dot)com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Hello all,
>
> In order to speed up commonly used queries, I use prepared
> statements. I assume that 'prepare' tells some database query planner to
> take a look at a query, and do all preparations for it, then store those
> preparations somewhere for when it's needed.
>
> When I use CREATE FUNCTION to create a function, does that also get
> "planned" automatically (plsql, specifically). My gut feeling is that it
> doesn't (mainly since it can be any external language).
by the way, query plans are exposed through spi interface so all pl
languages have ability to store plans. pl/sql saves plans as well as
static sql in pl/pgsql. ymmv on various other pls.
merlin
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Huxton | 2007-06-29 16:32:51 | Re: CREATE FUNCTION ... performance boost? |
| Previous Message | Merlin Moncure | 2007-06-29 16:25:52 | Re: CREATE FUNCTION ... performance boost? |