Re: Prepared statements - Mailing list pgsql-general

From Rakesh Kumar
Subject Re: Prepared statements
Date
Msg-id 1624a6bfb0c-c8d-9692@webjas-vac241.srv.aolmail.net
Whole thread Raw
In response to Prepared statements  (Tim Cross <theophilusx@gmail.com>)
Responses Re: Prepared statements  (Laurenz Albe <laurenz.albe@cybertec.at>)
List pgsql-general
> For example, the planner may be able to
> more easily recognise a statement and reuse an existing plan rather than
> re-planning the query.

This is a double edged sword.  Reuse an existing plan can be bad in those
cases where the data distribution is not suitable for the current plan. This has
been the achilles heel of many RDBMS.  Only in Oracle 12c there are 
options to let the planner change existing plan by peeking into the parameter
values (supplied in ? of prepare) and checking it against the distribution.


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: JDBC connectivity issue
Next
From: Peter Geoghegan
Date:
Subject: Re: found xmin from before relfrozenxid on pg_catalog.pg_authid