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 > Re: Query Hints...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 3 Topic 9302 of 10122
Post > Topic >>

Re: Query Hints? No thanks. Data hints?

by kleptog@[EMAIL PROTECTED] (Martijn van Oosterhout) May 6, 2008 at 01:00 PM

--oLBj+sq0vYjzfsbl
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, May 04, 2008 at 09:44:58PM +0200, Dimitri Fontaine wrote:
> IIRC, I've read here in the past some attempts to begin a proposal on
=20
> the topic of data hints, allowing the user to describe his data in a =20
> way ANALYZE can't figure out by itself, as e.g. "this column value is
=20
> tied to this other column value in this way".

There has been talk about this in the past, things like being able to
store cross-table correlations which isn't know at all. The problem is
two-fold:

- How do you calculate the stats?
- How do you use them?

Cross-table correlations are easy for the second part, because it's
fairly simple to see where it could be used. However, no-one has come
up with an algorithm to produce a useful number to use. For others it's
harder.

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

In general postgres could use many bits of information not currently
available. For example: A=3DB implies lower(A)=3Dlower(B), hence an index
on lower(A) could be used to optimise comparisons against A. Certain
operations preserve order, which may also be useful.

You can always propose something, see where it goes.

Have a nice day,
--=20
Martijn van Oosterhout   <kleptog@[EMAIL PROTECTED]
>   http://svana.org/kleptog/
> Please line up in a tree and maintain the heap invariant while=20
> boarding. Thank you for flying nlogn airlines.

--oLBj+sq0vYjzfsbl
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIIDo9IB7bNG8LQkwRAlV8AKCOE9qHRT+JxGMToXxk9MeQJ1d3PwCcDTSn
2QOCRv1IZsbDxHLV2OdgP84=
=HH0c
-----END PGP SIGNATURE-----

--oLBj+sq0vYjzfsbl--
 




 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
tan12V112 Sun Sep 7 13:26:03 CDT 2008.