Re: [postgis-users] Is my query planner failing me, or vice versa? - Mailing list pgsql-performance

From Markus Schaber
Subject Re: [postgis-users] Is my query planner failing me, or vice versa?
Date
Msg-id 43A14D7B.8030705@logix-tt.com
Whole thread Raw
In response to Re: [postgis-users] Is my query planner failing me, or vice versa?  ("Gregory S. Williamson" <gsw@globexplorer.com>)
List pgsql-performance
Hi, Gregory,

Gregory S. Williamson wrote:
> Forgive the cross-posting, but I found myself wondering if might not
> be some way future way of telling the planner that a given table
> (column ?) has a high likelyhood of being TOASTed. Similar to the
> random_page_cost in spirit. We've got a lot of indexed data that is
> spatial and have some table where no data is toasted (road segments)
> and others where evrything is.

I'd personally put this into ANALYZE, it already collects statistics, so
it could also calculate TOASTing likelyhood and average TOASTed size.

Maybe that 8.X PostgreSQL already does this, I'm a bit lagging :-)

Markus

pgsql-performance by date:

Previous
From: Mitch Skinner
Date:
Subject: Re: Simple Join
Next
From: "Gregory S. Williamson"
Date:
Subject: Re: [postgis-users] Is my query planner failing me, or vice versa?