Обсуждение: Technical question on PREPARE statements and PLPGSQL cached plans

Поиск
Список
Период
Сортировка

Technical question on PREPARE statements and PLPGSQL cached plans

От
Chris Travers
Дата:
Hi;

I was wondering....  When is a PREPARE statement planned?  On first
execution?  At the time the PREPARE statement is called?

How does the planner decide what sorts of plans to use when the ideal
plan might change based on future runs?

Is this the same wrt PLPGSQL cached plans?  Or are they planned differently?

Best Wishes,
Chris Travers