Received: from makus.postgresql.org ([98.129.198.125]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TPDZd-0006wq-N5 for pgsql-performance@postgresql.org; Fri, 19 Oct 2012 14:29:17 +0000 Received: from smtp.optionshouse.com ([38.98.137.6] helo=smtp.peak6.com) by makus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1TPDZZ-0007Ci-0r for pgsql-performance@postgresql.org; Fri, 19 Oct 2012 14:29:16 +0000 X-AuditID: 0a64cb1e-b7fd36d00000120f-72-508163ad9fc7 Message-ID: <508163B5.6070902@optionshouse.com> Date: Fri, 19 Oct 2012 09:29:09 -0500 From: Shaun Thomas Reply-To: Organization: Peak6 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: "pgsql-performance@postgresql.org" Subject: Tablespace-derived stats? Content-Type: text/plain; charset="ISO-8859-1"; format=flowed content-transfer-encoding: 7bit X-Originating-IP: [10.10.201.64] X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrLIsWRmVeSWpSXmKPExsXClcIrobs2uTHAYHqvqsX1meeYHRg9Luyb xh7AGNXAaJOYl5dfkliSqpCSWpxsq+RfUJKZn1fskV9anKrgklmcnJOYmZtapKSQmWKrZK6k UJCTmJyam5pXYquUWFCQmpeiZMelgAFsgMoy8xRS85LzUzLz0m2VPIP9dS0sTC11DZXs4pFB QidLxtXT9gX7uCpWf5/O1sC4kaOLkZNDQsBE4lnLRDYIW0ziwr31QDYHB6+AvsS3j5kgYRYB VYm35/axg9hsAroSk/pXgJULCahI9J29wQRi8wsIS+z70MQMYosKhEks37kZLM4rIChxcuYT FhBbRMBTYvb+bWC2sICSxK3De8BmMgvYSlyYc50FwpaX2P52DjPEfFWJFc0wpylI/L/yjmkC I/8sJGNnIWmfhaR9ASPzKkbx4rLE5IxM04Li3JICQ72C1MRsM7281JJNjODIOi23g3H6UsVD jAIcjEo8vAH3GgKEWBPLiitzDzFKcDArifC6sTcGCPGmJFZWpRblxxeV5qQWH2JMBobHRGYp 0eR8YNTnlcQbGhtamlqamFmaGxsbkCasJM5r26cUICSQDkwW2ampBalFMFuYODilGhjXRdkc bqooWXJZtfF2s/G36xoCKUu+9SnMbZZYJV2eLHW6YcsDuYZPQrmnFGwmBBr8v/1P1GLuxQOX M0Ojp505skwuYMr6CNaaDEY7FdkS7nAl34UNnWUrvsp2dJ3vUt2hk7BZTdP690Vd0YW+quap ts9XvXdvebU0rZTbZCt7Z/Q8nekHdiqxFGckGmoxFxUnAgBUoIY/8AIAAA== X-Pg-Spam-Score: -2.3 (--) X-Archive-Number: 201210/265 X-Sequence-Number: 48224 Hello Perf, Lately I've been pondering. As systems get more complex, it's not uncommon for tiered storage to enter the picture. Say for instance, a user has some really fast tables on a NVRAM-based device, and slower-access stuff on a RAID, even slower stuff on an EDB, and variants like local disk or a RAM drive. Yet there's only one global setting for random_page_cost, and seq_page_cost, and so on. Would there be any benefit at all to adding these as parameters to the tablespaces themselves? I can imagine the planner could override the default with the tablespace setting on a per-table basis when calculating the cost of retrieving rows from tables/indexes on faster or slower storage. This is especially true since each of the storage engines I listed have drastically different performance profiles, but no way to hint to the planner. There was a talk at the last PG Open about his EDB tests vastly preferring partitioning and sequential access because random access was so terrible. But NVRAM has the opposite metric. Currently, tuning for one necessarily works against the other. I didn't see anything in the Todo Wiki, so I figured I'd ask. :) Thanks! -- Shaun Thomas OptionsHouse | 141 W. Jackson Blvd. | Suite 500 | Chicago IL, 60604 312-444-8534 sthomas@optionshouse.com ______________________________________________ See http://www.peak6.com/email_disclaimer/ for terms and conditions related to this email