Re: [GENERAL] 9.1: Slow to add range check on indexed column

2013-05-25 Thread Raymond O'Donnell
On 25/05/2013 20:37, Moshe Jacobson wrote: > I just created a new partition in a log table, and then built a check > constraint on the recorded timestamp column. > > I have an index on this column, but the adding of the check constraint > took a very, very long time. > > It seems that PostgreSQL

[GENERAL] 9.1: Slow to add range check on indexed column

2013-05-25 Thread Moshe Jacobson
I just created a new partition in a log table, and then built a check constraint on the recorded timestamp column. I have an index on this column, but the adding of the check constraint took a very, very long time. It seems that PostgreSQL 9.1 does not check the index when building a check constr