add constraints for name to pg schema
Merge pull request #940 from mind04/903

add constraints for name to pg schema #903