I am new to postgresql and would like to know if I can declare functions inside type definitions as can be done in oracle. Something like MEMBER FUNCTION