Edmund Dengler <edmundd@eSentire.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