Re: Prepared statements

From: Rakesh Kumar <rakeshkumar464(at)aol(dot)com>
To: theophilusx(at)gmail(dot)com, pgsql-general(at)postgresql(dot)org
Subject: Re: Prepared statements
Date: 2018-03-21 21:16:54
Message-ID: 1624a6bfb0c-c8d-9692@webjas-vac241.srv.aolmail.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Peter Geoghegan 2018-03-21 21:29:40 Re: found xmin from before relfrozenxid on pg_catalog.pg_authid
Previous Message Adrian Klaver 2018-03-21 21:13:04 Re: JDBC connectivity issue