On Mon, Jun 18, 2007 at 05:11:51AM +0200, Jan Danielsson wrote: > Are there any statistical libraries for postgresql? > > I'd like to do something along the lines of: > > UPDATE foo SET value=value+normdistsample(10, 0.2) WHERE id=1; Somebody else has mentioned PL/R. For this particular example see also normal_rand() in contrib/tablefunc. -- Michael Fuhr