Re: per table random-page-cost? - Mailing list pgsql-hackers

From Greg Stark
Subject Re: per table random-page-cost?
Date
Msg-id 407d949e0910191427md5c9a9au1efc0dd928658106@mail.gmail.com
Whole thread Raw
In response to per table random-page-cost?  (marcin mank <marcin.mank@gmail.com>)
Responses Re: per table random-page-cost?
List pgsql-hackers
On Mon, Oct 19, 2009 at 2:08 PM, marcin mank <marcin.mank@gmail.com> wrote:
> Currently random_page_cost is a GUC. I propose that this could be set per-table.

Or per-tablespace.

Yes, I think there are a class of GUCs which describe the physical
attributes of the storage system which should be per-table or
per-tablespace. random_page_cost, sequential_page_cost,
effective_io_concurrency come to mind.

While this isn't a simple flag to change it does seem like a bit of a
SMOP. The GUC infrastructure stores these values in global variables
which the planner and other systems consult directly. They would
instead have to be made storage parameters which the planner and other
systems check on the appropriate table and default to the global GUC
if they're not set.

-- 
greg


pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: per table random-page-cost?
Next
From: "Kevin Grittner"
Date:
Subject: Re: per table random-page-cost?