Re: log_planner_stats and prepared statements

2019-04-17 Thread Bruce Momjian
On Wed, Apr 17, 2019 at 12:04:35AM -0400, Tom Lane wrote: > Bruce Momjian writes: > > I have found that log_planner_stats only outputs stats until the generic > > plan is chosen. For example, if you run the following commands: > > Uh, well, the planner doesn't get run after that point ... Yes,

Re: log_planner_stats and prepared statements

2019-04-16 Thread Tom Lane
Bruce Momjian writes: > I have found that log_planner_stats only outputs stats until the generic > plan is chosen. For example, if you run the following commands: Uh, well, the planner doesn't get run after that point ... regards, tom lane

log_planner_stats and prepared statements

2019-04-16 Thread Bruce Momjian
I have found that log_planner_stats only outputs stats until the generic plan is chosen. For example, if you run the following commands: SET client_min_messages = 'log'; SET log_planner_stats = TRUE; PREPARE e AS SELECT relkind FROM pg_class WHERE relname = $1 ORD