Re: obsolete code

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: obsolete code
Дата
Msg-id 510BEEDB.2030103@dunslane.net
обсуждение исходный текст
Ответ на Re: obsolete code  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 02/01/2013 11:20 AM, Tom Lane wrote:

> I'm not really thrilled with switching the default assumption to be V1,
> especially not if we implement that by telling authors they can stop
> bothering with the macros.  The pain will just come back sometime in the
> future when we decide we need a function API V2.  (I'm actually a bit
> surprised V1 has lived this long without changes.)
>
> Here's a different straw-man proposal: let's start requiring *all*
> external C functions to have an API-version block.  We can add a
> PG_FUNCTION_INFO_V0(myfunc) macro for those people who are still using
> V0 and don't feel like changing their code (and you know they're out
> there).  For the rest of us, this would allow emitting an appropriate
> error when we forget the macro.


Sounds like a good plan.

cheers

andrew



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: pkg-config files for libpq and ecpg
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: PL/PgSQL STRICT