Re: Performance of query (fwd)

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Edmund Dengler <edmundd(at)eSentire(dot)com>
Cc: Dmitry Tkach <dmitry(at)openratings(dot)com>, Dann Corbit <DCorbit(at)connx(dot)com>, pgsql-general(at)postgresql(dot)org
Subject: Re: Performance of query (fwd)
Date: 2003-06-12 02:40:16
Message-ID: 25349.1055385616@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Edmund Dengler <edmundd(at)eSentire(dot)com> writes:
> Interesting. This brings up a quick question. If a "prepare" statement is
> run, and then values are passed in, does the plan stay the same regardless
> of the values? Or is a second pass made to re-optimize the plan?

AFAICS, the entire *point* of a prepared statement is that the plan is
computed just once for multiple uses.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message darren 2003-06-12 02:50:22 Re: createdb for new user?
Previous Message Maksim Likharev 2003-06-12 02:34:25 Re: Postgres performance comments from a MySQL user