| От | TalGloz |
|---|---|
| Тема | Re: PostgreSQL C Language Extension with C++ Code |
| Дата | |
| Msg-id | 1534104904227-0.post@n3.nabble.com обсуждение исходный текст |
| Ответ на | Re: PostgreSQL C Language Extension with C++ Code (Tom Lane <tgl@sss.pgh.pa.us>) |
| Список | pgsql-general |
Let me see if I understood you correctly. I cant have a code like this:
extern "C" {
int sum_of_numbers(){
std::vector<int> numbers {23, 445, 64};
int sum = 0;
for (auto &item : numbers){
sum += item;
}
return sum;
}
}
And I have to declare my function with inside the
Datum sum_of_numbers(PG_FUNCTION_ARGS){
// function code here
}
Sorry for the log mails. I'm having problems to understand, how to change
the construction of myfunc.cpp to run the code.
--
Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера