View Single Post

   
  #3 (permalink)  
Old 04-10-2008, 08:52 AM
Tom Lane
 
Posts: n/a
Default Re: CHECK constraint (true) causes dumps with parse errors

Neil Conway <neilc@samurai.com> writes:
> Szűcs Gábor wrote:
>> Check constraints:
>> "foobar" CHECK ()


> Yeah, I can repro this with current REL7_4_STABLE sources, but it looks
> fixed in HEAD and REL8_0_STABLE.


I think the reason is that 7.4 applies make_ands_implicit before storing
the constraint, while 8.0 and up don't. I'm inclined to think it's not
worth trying to fix in the back branches.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 5: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

Reply With Quote