From: | Andrew Sullivan <ajs(at)crankycanuck(dot)ca> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: How to keep a table in memory? |
Date: | 2007-11-13 20:05:08 |
Message-ID: | 20071113200508.GX11563@crankycanuck.ca |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, Nov 13, 2007 at 02:36:14PM -0500, Greg Smith wrote:
> Sure, but in this case the reasoning seems sound enough.
Yes. But. . .
> I see this as similar to the old optimizer hint argument, where there
> certainly exist some edge cases where people know something the optimizer
> doesn't which changes the optimal behavior.
. . .the abuse of such hints in applications I have seen is so rampant as to
make me doubt the utility of adding them anyway. It's true that by adding
hints, you give a facility to a good, competent designer who has a really
peculiar case that no general purpose system is likely to solve well. In
practice, however, it also seems to mean that every slack-jawed fool with
access to the manual thinks that he or she is going to "fix" the "broken"
query plan by forcing index scans where they're useless (has a week yet gone
by where someone doesn't post to -performance with that problem?). So I'm
divided on whether actually providing the facility is a good idea, even
though I can think of a handful of cases where I doubt even the smartest
planner will get it right. (By analogy, pinning in memory, and I'm
similarly divided.)
A
--
Andrew Sullivan
Old sigs will return after re-constitution of blue smoke
From | Date | Subject | |
---|---|---|---|
Next Message | Ron Mayer | 2007-11-13 21:22:39 | Re: How to keep a table in memory? |
Previous Message | Andrew Dunstan | 2007-11-13 19:42:18 | Re: fulltext parser strange behave |