May 2017
Beginner
416 pages
10h 37m
English
In PostgreSQL, a query is executed using four stages:
If the query is short, the first three steps are relatively time consuming compared to the real execution time. Therefore, it can make sense to cache execution plans. PL/pgSQL basically does all the plan caching for you automatically behind the scenes. You don't have to care. PL/Perl and PL/Python will give you the choice. The SPI interface provides functions to handle and run prepared queries, so the programmer has the choice whether a query should be prepared or not. In the case of long ...
Read now
Unlock full access