Search Postgresql Archives

Re: R: Slow queries on very big (and partitioned) table

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

 



> Unfortunately, that'll require locking each table and scanning it to make sure that the CHECK constraint isn't violated.

Actually, CHECK constraints can be added with the NOT VALID clause. 
New tuples will be checked immediately, while the validation of existing tuples can be done later using ALTER TABLE ... VALIDATE CONSTRAINT ... which takes a less invasive lock than if you'd omitted NOT VALID.

Steve.



-- 
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