Re: [HACKERS] analyze.c

2004-07-16 Thread Peter Eisentraut
Anja Klein wrote: > how can i tell postgres. that it should only create the sample table, > when the original table to be created has the name "origin" or > something like that? or that it should only act, if some user wants > to create the table, not postgres itself? You would presumably do a str

[HACKERS] analyze.c

2004-07-16 Thread Anja Klein
Hi guys, during my study i have to du some practical work. i must extend postgresql with some sampling algorithms. therefore i implemented some trigger functions. it works fine. but now i have to do some changes concerning the parser, particularly analyze.c . if a user sends an create table comm

AW: [HACKERS] analyze.c

2000-10-16 Thread Zeugswetter Andreas SB
> > I've been reading something about implementation of histograms, and, > > AFAIK, in practice histograms is just a cool name for no more than: > >1. top ten with frequency for each > >2. the same for top ten worse > >3. average for the rest Consider, that we only need that info for

Re: [HACKERS] analyze.c

2000-10-15 Thread Bruce Momjian
> BTW, you can get access to SIGMOD CDs with lots of goodies for a very low > price (at least in 1999 it was a bargain), check out ACM membership for > sigmod. > > I've been reading something about implementation of histograms, and, > AFAIK, in practice histograms is just a cool name for no more

Re: [HACKERS] analyze.c

2000-10-15 Thread Bruce Momjian
> Hi! > > About analyze.c: > If taken out vacuum, couldn't it be completly taken out of pg? Say, > to an external program? What's the big reason not to do that? I know that > there is some code in analyze.c (like comparing) that uses other parts of > pg, but that seems to be easily fixed. >