On Sat, 2012-05-26 at 22:06 +0300, Catalin(ux) M. Boie wrote: > Hello. > Thanks for the answer. > > I really want to avoid reading the whole table. It is too expensive, > and with the proposed feature will be not needed. I think is much > faster to forcefully add the check if you know the range of data. > > What do you think? Why not just create the CHECK constraint as NOT VALID, and never validate it? It will still enforce the constraint, it just won't validate it against your old data, which sounds like what you want. Regards, Jeff Davis -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general