Re: [HACKERS] A small problem with the new inet and cidr types
От | jwieck@debis.com (Jan Wieck) |
---|---|
Тема | Re: [HACKERS] A small problem with the new inet and cidr types |
Дата | |
Msg-id | m0zb0NR-000EBVC@orion.SAPserv.Hamburg.dsh.de обсуждение исходный текст |
Ответ на | Re: [HACKERS] A small problem with the new inet and cidr types ("Thomas G. Lockhart" <lockhart@alumni.caltech.edu>) |
Список | pgsql-hackers |
> > > * redesign the function call interface to handle NULLs better > > I was planning on looking at this for v6.5, at least in the context of > trying to solve the problem of returning NULL for pass-by-value types. > > We should have some discussion of pass-by-value vs. pass-by-reference > and whether it is worth having both mechanisms for common data types. As > it is, functions which return int2 or int4 cannot return NULL because > there is no way to represent that with these types. I was thinking of > implementing true smallint/integer pass-by-reference types to clean this > up. Actually they can - but only if they take exactly one argument. fmgr_c() calls those ones with an additional isNull bool pointer. The mess is, that we have different entry points to call a function, some of them pass information about NULL and some not. What I had in mind was to finally have one single entry point that handles NULL for any argument and for the return value. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #======================================== jwieck@debis.com (Jan Wieck) #
В списке pgsql-hackers по дате отправления: