Re: Writing triggers in C++

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Writing triggers in C++
Дата
Msg-id 1222.1171415221@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Writing triggers in C++  (Jacob Rief <jacob.rief@gmx.at>)
Ответы Re: Writing triggers in C++
Re: Writing triggers in C++
Список pgsql-hackers
Jacob Rief <jacob.rief@gmx.at> writes:
> I tried to write a trigger using C++.

That is most likely not going to work anyway, because the backend
operating environment is C not C++.  If you dumb it down enough
--- no exceptions, no RTTI, no use of C++ library --- then it might
work, but at that point you're really coding in C anyway.

> Is there any convention how to rename such identifiers? If I would
> rename those identifiers (I simply would add an underscore to each of
> them), would such a patch be accepted and adopted onto one of the next
> releases? 

No.  Because of the above problems, we don't see much reason to avoid
C++'s extra keywords.
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Fixing insecure security definer functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Fixing insecure security definer functions