Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0ca231f

Browse files
committed
Add to optimizer file.
1 parentd183dd6 commit0ca231f

File tree

1 file changed

+84
-1
lines changed

1 file changed

+84
-1
lines changed

‎doc/TODO.detail/optimizer

Lines changed: 84 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1059,7 +1059,7 @@ From owner-pgsql-hackers@hub.org Thu Jan 20 18:45:32 2000
10591059
Received: from renoir.op.net (root@renoir.op.net [207.29.195.4])
10601060
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id TAA00672
10611061
for <pgman@candle.pha.pa.us>; Thu, 20 Jan 2000 19:45:30 -0500 (EST)
1062-
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.16 $) with ESMTP id TAA01989 for <pgman@candle.pha.pa.us>; Thu, 20 Jan 2000 19:39:15 -0500 (EST)
1062+
Received: from hub.org (hub.org [216.126.84.1]) by renoir.op.net (o1/$Revision: 1.17 $) with ESMTP id TAA01989 for <pgman@candle.pha.pa.us>; Thu, 20 Jan 2000 19:39:15 -0500 (EST)
10631063
Received: from localhost (majordom@localhost)
10641064
by hub.org (8.9.3/8.9.3) with SMTP id TAA00957;
10651065
Thu, 20 Jan 2000 19:35:19 -0500 (EST)
@@ -1837,3 +1837,86 @@ what's left. I forget the figures exactly.
18371837

18381838
Jules
18391839

1840+
From pgsql-hackers-owner+M6154@hub.org Wed Aug 23 14:36:41 2000
1841+
Received: from hub.org (root@hub.org [216.126.84.1])
1842+
by candle.pha.pa.us (8.9.0/8.9.0) with ESMTP id NAA11076
1843+
for <pgman@candle.pha.pa.us>; Wed, 23 Aug 2000 13:36:41 -0400 (EDT)
1844+
Received: from hub.org (majordom@localhost [127.0.0.1])
1845+
by hub.org (8.10.1/8.10.1) with SMTP id e7NHTqN92431;
1846+
Wed, 23 Aug 2000 13:29:52 -0400 (EDT)
1847+
Received: from mail.fct.unl.pt (fct1.si.fct.unl.pt [193.136.120.1])
1848+
by hub.org (8.10.1/8.10.1) with SMTP id e7NHM1N90883
1849+
for <pgsql-hackers@hub.org>; Wed, 23 Aug 2000 13:22:01 -0400 (EDT)
1850+
Received: (qmail 13816 invoked by alias); 23 Aug 2000 17:29:02 -0000
1851+
Received: (qmail 13807 invoked from network); 23 Aug 2000 17:29:02 -0000
1852+
Received: from eros.si.fct.unl.pt (193.136.120.112)
1853+
by fct1.si.fct.unl.pt with SMTP; 23 Aug 2000 17:29:02 -0000
1854+
Date: Wed, 23 Aug 2000 18:22:40 +0100 (WEST)
1855+
From: =?iso-8859-1?Q?Tiago_Ant=E3o?= <tra@fct.unl.pt>
1856+
X-Sender: tiago@eros.si.fct.unl.pt
1857+
To: Tom Lane <tgl@sss.pgh.pa.us>
1858+
cc: =?iso-8859-1?Q?Tiago_Ant=E3o?= <tra@fct.unl.pt>,
1859+
PostgreSQL Hackers list <pgsql-hackers@hub.org>
1860+
Subject: Re: [HACKERS] analyze.c
1861+
In-Reply-To: <28154.967041988@sss.pgh.pa.us>
1862+
Message-ID: <Pine.LNX.4.21.0008231742420.5111-100000@eros.si.fct.unl.pt>
1863+
MIME-Version: 1.0
1864+
Content-Type: TEXT/PLAIN; charset=US-ASCII
1865+
X-Mailing-List: pgsql-hackers@postgresql.org
1866+
Precedence: bulk
1867+
Sender: pgsql-hackers-owner@hub.org
1868+
Status: ORr
1869+
1870+
1871+
1872+
On Wed, 23 Aug 2000, Tom Lane wrote:
1873+
1874+
> > What's the big reason not to do that? I know that
1875+
> > there is some code in analyze.c (like comparing) that uses other parts of
1876+
> > pg, but that seems to be easily fixed.
1877+
>
1878+
> Are you proposing not to do any comparisons? It will be interesting to
1879+
> see how you can compute a histogram without any idea of equality or
1880+
> ordering. But if you want that, then you still need the function-call
1881+
> manager as well as the type-specific comparison routines for every
1882+
> datatype that you might be asked to operate on (don't forget
1883+
> user-defined types here).
1884+
1885+
I forgot user defined data types :-(, but regarding histograms I think
1886+
the code can be made external (at least for testing purposes):
1887+
1. I was not suggesting not to do any comparisons, but I think the only
1888+
comparison I need is equality, I don't need order as I don't need to
1889+
calculate mins or maxs (I just need mins and maxes on frequencies, NOT on
1890+
dat itself) to make a histogram.
1891+
2. The mapping to text guarantees that I have (PQgetvalue returns
1892+
always char* and pg_statistics keeps a "text" anyway) a way of knowing
1893+
about equality regardless of type.
1894+
1895+
But at least anything relating to order has to be in.
1896+
1897+
> > I'm leaning toward the implementation of end-biased histograms. There is
1898+
> > an introductory reference in the IEEE Data Engineering Bulletin, september
1899+
> > 1995 (available on microsoft research site).
1900+
>
1901+
> Sounds interesting. Can you give us an exact URL?
1902+
1903+
http://www.research.microsoft.com/research/db/debull/default.htm
1904+
1905+
BTW, you can get access to SIGMOD CDs with lots of goodies for a very low
1906+
price (at least in 1999 it was a bargain), check out ACM membership for
1907+
sigmod.
1908+
1909+
I've been reading something about implementation of histograms, and,
1910+
AFAIK, in practice histograms is just a cool name for no more than:
1911+
1. top ten with frequency for each
1912+
2. the same for top ten worse
1913+
3. average for the rest
1914+
1915+
I'm writing code get this info (outside pg for now - for testing
1916+
purposes).
1917+
1918+
Best Regards,
1919+
Tiago
1920+
PS - again: I'm starting, so, some of my comments can be completly dumb.
1921+
1922+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp