Re: replanning prepared Statements

From: Andreas Kretschmer <akretschmer(at)spamfence(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: replanning prepared Statements
Date: 2010-06-02 15:09:47
Message-ID: 20100602150947.GA27915@tux
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Janning <ml(at)planwerk6(dot)de> wrote:

> Hi,
>
> I am using prepared statements in Postgresql 8.4.
>
> Does Postgresql
>
> a) plans statements only once when PREPARE is called?
>
> b) replans statements from time to time
>
> c) replans when underlying statistics change on behalf of ANALYZE command?

AFAIK a), see
http://www.postgresql.org/docs/8.4/interactive/sql-prepare.html ,
chapter "Notes".

Andreas
--
Really, I'm not out to destroy Microsoft. That will just be a completely
unintentional side effect. (Linus Torvalds)
"If I was god, I would recompile penguin with --enable-fly." (unknown)
Kaufbach, Saxony, Germany, Europe. N 51.05082°, E 13.56889°

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Wilcox 2010-06-02 15:14:57 Re: Out of Memory and Configuration Problems (Big Computer)
Previous Message Magnus Hagander 2010-06-02 15:08:48 Re: Out of Memory and Configuration Problems (Big Computer)