Re: [HACKERS] Hints proposal

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Jim C(dot) Nasby" <jim(at)nasby(dot)net>
Cc: Josh Berkus <josh(at)agliodbs(dot)com>, pgsql-hackers(at)postgresql(dot)org, pgsql-performance(at)postgresql(dot)org
Subject: Re: [HACKERS] Hints proposal
Date: 2006-10-14 04:19:46
Message-ID: 25999.1160799586@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-performance

"Jim C. Nasby" <jim(at)nasby(dot)net> writes:
> Let me clarify, because that's not what I meant. Right now, there's not
> even a shadow of a design for anything else, and this is a tough nut to
> crack.

I think you are not exactly measuring on a level playing field. On the
textually-embedded-hints side, I see a very handwavy suggestion of a
syntax and absolutely nothing about how it might be implemented --- in
particular, nothing about how the information would be transmitted
through to the planner, and nothing about exactly how the planner would
use it if it had it. (No, I don't think "the planner will obey the
hints" is an implementation sketch.) On the other side, the concept of
system catalog(s) containing overrides for statistical or costing
estimates is pretty handwavy too, but at least it's perfectly clear
where it would plug into the planner: before running one of the current
stats estimation or costing functions, we'd look for a matching override
command in the catalogs. The main question seems to be what we'd like
to be able to match on ... but that doesn't sound amazingly harder than
specifying what an embedded hint does.

IMO a textual hint facility will actually require *more* infrastructure
code to be written than what's being suggested for alternatives.

regards, tom lane

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message NikhilS 2006-10-14 06:02:10 Re: Additional stats for Relations
Previous Message Alvaro Herrera 2006-10-14 01:29:01 Re: [HACKERS] Hints proposal

Browse pgsql-performance by date

  From Date Subject
Next Message Mischa Sandberg 2006-10-14 21:18:45 Re: [HACKERS] Hints proposal
Previous Message Alvaro Herrera 2006-10-14 01:29:01 Re: [HACKERS] Hints proposal