Re: c language functions
От
Robert Haas
Тема
Re: c language functions
Дата
Msg-id
CA+TgmoZjyyeR2uq=bFOjtAZpZ3_v83+ot64K_whWNTG=s8LfwQ@mail.gmail.com
Ответ на
Re: c language functions (Rodrigo Barboza)
Список
Дерево обсуждения
c language functions Rodrigo Barboza <rodrigombufrj@gmail.com>
Re: c language functions Robert Haas <robertmhaas@gmail.com>
Re: c language functions Rodrigo Barboza <rodrigombufrj@gmail.com>
Re: c language functions Tom Lane <tgl@sss.pgh.pa.us>
Re: c language functions Rodrigo Barboza <rodrigombufrj@gmail.com>
Re: c language functions Robert Haas <robertmhaas@gmail.com>
Re: c language functions Rodrigo Barboza <rodrigombufrj@gmail.com>
On Wed, Apr 3, 2013 at 3:25 PM, Rodrigo Barboza wrote: > Well, I was checking inside my function the type of the second argument and > switching between the allowed types. > This way kind of does the same thing of many functions, doesn't it? Sure, except that it will also call your function when someone does my_int + text or my_int + bytea or my_int + box, which are surely a lot less sensible. It's probably a good idea to assume that if you make your type work like the existing types, it's more likely to end well than if you make it behave completely differently. ...Robert
В списке pgsql-hackers по дате отправления
От: Kevin Grittner
Дата:
От: Robert Haas
Дата: