Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql Hackers > Query Hints? No...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 9302 of 9770
Post > Topic >>

Query Hints? No thanks. Data hints?

by dim@[EMAIL PROTECTED] (Dimitri Fontaine) May 4, 2008 at 09:44 PM

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi -hackers,

In another thread about "GUC parameter cursors_tuple_fraction", the  
debate seems to drift onto query hints. About which the consensus here  
is pretty clear and strong, no query hints in PostgreSQL, thanks, or  
we're never gonna have a perfect generic planner.

IIRC, I've read here in the past some attempts to begin a proposal on  
the topic of data hints, allowing the user to describe his data in a  
way ANALYZE can't figure out by itself, as e.g. "this column value is  
tied to this other column value in this way".
This could be a materialized column, mutual-exclusive NOT NULLs, or  
any multi-columns relation****ps, as well as "this table is a fact  
table", etc.

What do you -hackers think about such a plan:
  - *****s cases where the planner is failing short of good statistics

  - *****s data properties SQL does not give us but would be of  
interrest
    to internals, and at the same time not so difficult to know about  
by DBAs

  - based on this, prepare a descriptive language of some sort tying  
this all in

  - implement it in a good way ;)

I'm thinking we could have a new set of commands to tell PostgreSQL  
some "high-level" facts about the data, e.g. "there's a injective  
function such as f(t.colA) = t.colB" or any useful thing to be found  
in the firsts proposed step.

Is there a chance we're gonna improve the planner this way? And answer  
Simon's (and many others here and there, -performance etc) concerns?

HTH, regards,
- --
dim
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iEYEARECAAYFAkgeEjoACgkQlBXRlnbh1bnlHwCfcHL5uOlCpptekwLBMp+E9kUn
4roAoMfwdITByHtxCi35l9jDCTSFw2Ho
=whVn
-----END PGP SIGNATURE-----

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
 




 3 Posts in Topic:
Query Hints? No thanks. Data hints?
dim@[EMAIL PROTECTED] (D  2008-05-04 21:44:58 
Re: Query Hints? No thanks. Data hints?
kleptog@[EMAIL PROTECTED]  2008-05-06 13:00:13 
Re: Query Hints? No thanks. Data hints?
peter_e@[EMAIL PROTECTED]  2008-05-06 14:44:52 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan13V112 Sun Jul 20 4:37:27 CDT 2008.