Re: A query planner that learns

From: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
To: AgentM <agentm(at)themactionfaction(dot)com>
Cc: pgsql general <pgsql-general(at)postgresql(dot)org>
Subject: Re: A query planner that learns
Date: 2006-10-13 17:51:01
Message-ID: 20061013175101.GH28647@nasby.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Oct 13, 2006 at 11:53:15AM -0400, AgentM wrote:
> One simple first step would be to run an ANALYZE whenever a
> sequential scan is executed. Is there a reason not to do this? It

Yes. You want a seqscan on a small (couple pages) table, and ANALYZE has
a very high overhead on some platforms.

Just recording the query plan and actual vs estimated rowcounts would be
a good start, though. And useful to DBA's, provided you had some means
to query against it.
--
Jim Nasby jim(at)nasby(dot)net
EnterpriseDB http://enterprisedb.com 512.569.9461 (cell)

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Merlin Moncure 2006-10-13 17:52:10 Re: more anti-postgresql FUD
Previous Message Jim C. Nasby 2006-10-13 17:48:23 Re: A query planner that learns