Re: [GENERAL] Type checking

2006-05-16 Thread Tom Lane
Don Y <[EMAIL PROTECTED]> writes: > I.e., if I have a bunch of functions defined as taking an > argument of type "foo", is there any way the user can pass > a value to these functions WITHOUT it going through my > gatekeepers (foo_in(), foo_from_baz(), etc.)? No, not if foo is a separate type. Po

[GENERAL] Type checking

2006-05-16 Thread Don Y
Hi, I have several user defined types with particular restraints upon the data they represent. If I have crafted my foo_in() function to ensure that these constraints are always satisfied *before* allowing a datum into the database AND I have designed my casts to be similarly vigilant, is there