public QueryPlan Explain(FetchType fetchType = FetchType.FetchMany) { var model = MartenQueryParser.Flyweight.GetParsedQuery(Expression); var handler = toDiagnosticHandler(model, fetchType); var cmd = new NpgsqlCommand(); handler.ConfigureCommand(cmd); return(Executor.As <MartenQueryExecutor>().Connection.ExplainQuery(cmd)); }