Saint Louis University |
Computer Science 371
|
Dept. of Math & Computer Science |
If we want to know what evaluation plan is being used by Postgres for a given query, we can ask. Specifically, we put the keyword EXPLAIN explain immediately before a query, and in this case it explains the query evaluation plan it will use if performing that query. (note that the actual query is not performed, thereby letting us see the plan even when a query is taking too long).
We will look at several examples taken from our last homework. Namely, we examine the different plans used for evaluating a possible query for questions A and E, when using any of the three distinct schemas.
Handouts: