marcos(dot)castedo(at)anachronics(dot)com writes: > I'm trying to do a domain using stable plpgsql function for value check. > This isn't working on 9.6.x on plpgsql using assignment from base data type, > but it works fine on 9.2.x.
Seems to be broken in 9.5 too :-(. I pushed a fix, thanks for the report!
> --Only fails on stable function, immutable works fine
FWIW, both cases fail for me. There may be some other effect in whatever your original case was, but in this specific example an immutable function fails too.