<div dir="ltr">I see, that's true.<div style="style">I'm returning unknown type, there is a little more overhead. But
it'sworking now. =]</div><div style="style">Thanks for the help guys!</div></div><div class="gmail_extra"><br /><br
/><divclass="gmail_quote">On Wed, Apr 3, 2013 at 6:17 PM, Robert Haas <span dir="ltr"><<a
href="mailto:robertmhaas@gmail.com"target="_blank">robertmhaas@gmail.com</a>></span> wrote:<br /><blockquote
class="gmail_quote"style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Wed, Apr 3,
2013at 3:25 PM, Rodrigo Barboza <<a href="mailto:rodrigombufrj@gmail.com">rodrigombufrj@gmail.com</a>> wrote:<br
/>> Well, I was checking inside my function the type of the second argument and<br /> > switching between the
allowedtypes.<br /> > This way kind of does the same thing of many functions, doesn't it?<br /><br /></div>Sure,
exceptthat it will also call your function when someone does<br /> my_int + text or my_int + bytea or my_int + box,
whichare surely a<br /> lot less sensible. It's probably a good idea to assume that if you<br /> make your type work
likethe existing types, it's more likely to end<br /> well than if you make it behave completely differently.<br
/><spanclass="HOEnZb"><font color="#888888"><br /> ...Robert<br /></font></span></blockquote></div><br /></div>