Re: Maintaining state across function calls

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Maintaining state across function calls
Дата
Msg-id 20121121022630.156390@gmx.com
обсуждение исходный текст
Ответ на Maintaining state across function calls  (matt@byrney.com)
Список pgsql-general
Craig Ringer wrote:

> If at all possible, isolate your C++ code from the PostgreSQL
> aggregate implementation. Pass the C++ code pre-allocated buffers
> to work with if you can, and manage the allocations in the Pg C
> code. Turn your C++ code into library that presents only `extern
> "C"` interfaces and opaque types if yu can.

+1

You definitely want to separately compile the C code which interfaces
with PostgreSQL and calls C entry points to the C++ code. A clear and
clean boundary here is critical to reliability and maintainability.

-Kevin


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

Предыдущее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Experiences with pl/Java
Следующее
От: "Kevin Grittner"
Дата:
Сообщение: Re: Performance Testing Metrics