On Wednesday 09 May 2007 19:41, Guillaume Smet wrote: > On 5/9/07, Tom Lane <[EMAIL PROTECTED]> wrote: > > Jim Nasby <[EMAIL PROTECTED]> writes: > > > Any time this happens it's generally a nasty surprise for users. > > > > Really? Running out of work memory is expected on large tables. > > Sure. Perhaps we should find a better error message but it's an > interesting information. Personnaly, I try to choose a sane value > depending on my database but I'm never sure it's really sufficient or > if I added 100MB it would have made a real difference. >
If we were going to implement this (and I'm a tad skeptical as well), wouldn't it be better if the warning occured at the end of vacuum, and told you how much memory was actually needed, so you'd know what maintainence_work_mem should be. -- Robert Treat Build A Brighter LAMP :: Linux Apache {middleware} PostgreSQL ---------------------------(end of broadcast)--------------------------- TIP 9: In versions below 8.0, the planner will ignore your desire to choose an index scan if your joining column's datatypes do not match