Search Postgresql Archives

Re: 9.1: Slow to add range check on indexed column

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 9.1 does not check the index when building a
> check constraint on an indexed column. Is this correct? Is this
> addressed in future releases?

At a guess, I'd imagine that the check constraint has to be checked
against every row in the table, so the index would not be used anyway.

Ray.



-- 
Raymond O'Donnell :: Galway :: Ireland
rod@xxxxxx


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux