From: | Greg Stark <gsstark(at)mit(dot)edu> |
---|---|
To: | marcin mank <marcin(dot)mank(at)gmail(dot)com> |
Cc: | PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: per table random-page-cost? |
Date: | 2009-10-19 21:27:20 |
Message-ID: | 407d949e0910191427md5c9a9au1efc0dd928658106@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Mon, Oct 19, 2009 at 2:08 PM, marcin mank <marcin(dot)mank(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2009-10-19 21:54:47 | Re: per table random-page-cost? |
Previous Message | Robert Haas | 2009-10-19 21:14:40 | Re: per table random-page-cost? |