pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Csaba Nagy <nagy@ecircle-ag.com>
To: Mark Kirkwood <markir@paradise.net.nz>
Cc: Craig A. James <cjames@modgraph-usa.com>
Cc: postgres performance list <pgsql-performance@postgresql.org>
Subject: Re: Hints proposal
Date: Mon, 16 Oct 2006 15:27:46 +0200
Message-ID: <1161005266.28751.145.camel@coppola.muc.ecircle.de> (raw)
In-Reply-To: <45337C56.8000209@paradise.net.nz>
References: <78ED28FACE63744386D68D8A9D1CF5D4209CBF@MAIL.corp.lumeta.com>
	<4532D17B.20106@modgraph-usa.com>
	<45337C56.8000209@paradise.net.nz>

> 2d) Hints will damage the ongoing development of the optimizer by 
> reducing or eliminating test cases for its improvement.

You have no evidence for this. The mindset of the postgres community you
cite further below usually mandates that you say things if you have
evidence for them... and this one could be even backwards, by putting
such a tool in normal mortals hands that they can experiment with
execution plans to see which one works better, thus giving more data to
the developers than it is possible now. This is of course a speculation
too, but not at all weaker than yours.

> 2e) Hints will divert developer resource away from ongoing development 
> of the optimizer.

This is undebatable, although the long term cost/benefit is not clear.
And I would guess simple hinting would not need a genius to implement it
as planner optimizations mostly do... so it could possibly be done by
somebody else than the core planner hackers (is there any more of them
than Tom ?), and such not detract them too much from the planner
optimization tasks.

> 2f) Hints may demoralize the developer community - many of whom will 
> have been attracted to Postgres precisely because this was a realm where 
> crude solutions were discouraged.

I still don't get it why are you so against hints. Hints are a crude
solution only if you design them to be like that... otherwise they are
just yet another tool to get the work done, preferably now. 

> I understand that these points may seem a bit 'feel-good' and intangible 
> - especially for the DBA's moving to Pg from Oracle, but I think they 
> illustrate the mindset of the Postgres developer community, and the 
> developer community is, after all - the primary reason why Pg is such a 
> good product.

I fail to see why would be a "hinted" postgres an inferior product...

> Of course - if we can find a way to define 'hint like' functionality 
> that is more in keeping with the 'Postgres way' (e.g. some of the 
> relation level statistical additions as discussed), then some of 2d-2f) 
> need not apply.

I bet most of the users who wanted hints are perfectly fine with any
variations of it, if it solves the problems at hand. 

Cheers,
Csaba.





view thread (74+ messages)  latest in thread

Message-ID: <1161005266.28751.145.camel@coppola.muc.ecircle.de>
Permalink:  ../1161005266.28751.145.camel@coppola.muc.ecircle.de/
Also on:    postgresql.org/message-id/1161005266.28751.145.camel@coppola.muc.ecircle.de

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: nagy@ecircle-ag.com, markir@paradise.net.nz, cjames@modgraph-usa.com
  Subject: Re: Hints proposal
  In-Reply-To: <1161005266.28751.145.camel@coppola.muc.ecircle.de>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox