Re: obsolete code - Mailing list pgsql-hackers

From Pavel Stehule
Subject Re: obsolete code
Date
Msg-id CAFj8pRC9MguCS4sTm6DYz66L3z00M3txEEfmLbLSNQyTSQfKhA@mail.gmail.com
Whole thread Raw
In response to Re: obsolete code  (Andrew Dunstan <andrew@dunslane.net>)
List pgsql-hackers
2013/2/1 Andrew Dunstan <andrew@dunslane.net>:
>
> On 02/01/2013 10:38 AM, Tom Lane wrote:
>>
>> Andrew Dunstan <andrew@dunslane.net> writes:
>>>
>>> fmgr.c contains this:
>>>        * DEPRECATED, DO NOT USE IN NEW CODE
>>> Should we just drop all support for the old interface now?
>>
>> Is there any actual benefit to removing it?  I don't recall that
>> it's been the source of any maintenance burden.  I'd be fine with
>> dropping it if it were costing us something measurable, but ...
>>
>>
>
>
>
> My hope was that if we got rid of the old stuff we wouldn't need to use
>
>    PG_FUNCTION_INFO_V1(myfunc);
>

removing function descriptor should not be good idea - it can be used
for some annotation.

I had a similar issue - and can be nice, if it is solved with some assertions.

Regards

Pavel

>
>
> in external modules any more (I recently got bitten through forgetting this
> and it cost me an hour or two).
>
> cheers
>
> andrew
>
>
>
>
> --
> Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-hackers



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: obsolete code
Next
From: Pavel Stehule
Date:
Subject: Re: obsolete code