Re: [HACKERS] [GENERAL] Allowing SYSDATE to Work

2006-11-19 Thread Alvaro Herrera
Josh Berkus wrote: > Matt, > > > I now agree completely. My purpose is to migrate Oracle databases to > > Posgres, and I had thought that Oracle didn't support CURRENT_DATE, > > CURRENT_TIMESTAMP, and so on. However, I've just learned otherwise. So, > > I think the proper migration process for a

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Joshua D. Drake
On Sun, 2006-11-19 at 12:03 -0800, David Fetter wrote: > On Sun, Nov 19, 2006 at 12:01:15PM -0800, Joshua D. Drake wrote: > > On Sun, 2006-11-19 at 11:28 -0800, Josh Berkus wrote: > > > Tom, > > > > > > > Let's go with the easy fix. With regular 1GB segment size, > > > > having a few empty files

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Florian G. Pflug
Heikki Linnakangas wrote: Florian G. Pflug wrote: Joshua D. Drake wrote: On Sun, 2006-11-19 at 11:28 -0800, Josh Berkus wrote: Tom, Let's go with the easy fix. With regular 1GB segment size, having a few empty files in the data directory isn't going to hurt anyone. No, but it will confuse DB

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Heikki Linnakangas
Florian G. Pflug wrote: Joshua D. Drake wrote: On Sun, 2006-11-19 at 11:28 -0800, Josh Berkus wrote: Tom, Let's go with the easy fix. With regular 1GB segment size, having a few empty files in the data directory isn't going to hurt anyone. No, but it will confuse DBAs ("What the heck are all t

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Florian G. Pflug
Joshua D. Drake wrote: On Sun, 2006-11-19 at 11:28 -0800, Josh Berkus wrote: Tom, Let's go with the easy fix. With regular 1GB segment size, having a few empty files in the data directory isn't going to hurt anyone. No, but it will confuse DBAs ("What the heck are all these 0B files?"). Maybe

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread David Fetter
On Sun, Nov 19, 2006 at 12:01:15PM -0800, Joshua D. Drake wrote: > On Sun, 2006-11-19 at 11:28 -0800, Josh Berkus wrote: > > Tom, > > > > > Let's go with the easy fix. With regular 1GB segment size, > > > having a few empty files in the data directory isn't going to > > > hurt anyone. > > > > No

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Joshua D. Drake
On Sun, 2006-11-19 at 11:28 -0800, Josh Berkus wrote: > Tom, > > > Let's go with the easy fix. With regular 1GB segment size, having a few > > empty files in the data directory isn't going to hurt anyone. > > No, but it will confuse DBAs ("What the heck are all these 0B files?"). > Maybe > we

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Josh Berkus
Tom, > Let's go with the easy fix. With regular 1GB segment size, having a few > empty files in the data directory isn't going to hurt anyone. No, but it will confuse DBAs ("What the heck are all these 0B files?"). Maybe we should add code to VACUUM to look for these empty file segments and un

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Heikki Linnakangas
Tom Lane wrote: I think that the easiest fix might be to not remove no-longer-used segment files during a truncate, but simply reduce them to zero size rather than delete them. Then any open file pointers aren't invalidated. The only alternative I can see is to invent some new signaling mechani

Re: [HACKERS] Nasty VACUUM/bgwriter/segmentation bug

2006-11-19 Thread Bort, Paul
Tom Lane wrote: > > I think that the easiest fix might be to not remove no-longer-used > segment files during a truncate, but simply reduce them to zero size > rather than delete them. Then any open file pointers aren't > invalidated. The only alternative I can see is to invent some new > signal

Re: [HACKERS] [Fwd: Index Advisor]

2006-11-19 Thread Kai-Uwe Sattler
Hi, Am 15.11.2006 um 15:34 schrieb Gurjeet Singh: = .) The SELECTs in the pg_advise are returning wrong results, when the same index is suggested twice, because of the SUM() aggregates. I don't think that this is a bug. If the same index is recommended for two different queries it will ap