Re: PostgreSQL 8.4 crash on user defined C language function
В списке pgsql-general по дате отправления:
| От | Vincas Dargis |
|---|---|
| Тема | Re: PostgreSQL 8.4 crash on user defined C language function |
| Дата | |
| Msg-id | 4F7D3729.7080905@gmail.com обсуждение исходный текст |
| Ответ на | Re: PostgreSQL 8.4 crash on user defined C language function ("iihero" <iihero@qq.com>) |
| Список | pgsql-general |
Yeah, original example took command from arguments, I simply forgot to revert changes to original. Though it's not the problem, it is something with calling other functions under some kind environment I got. Your test was successful for "obviously it should work" reason, but it's something wrong for me that server crashes before executing "INFO 5"... 2012.04.05 02:38, iihero rašė: > Hi, > > In your code, only the last line "pfree(command);" is wrong. No need to > put it there. Since you use the constant string for the variable command. > > In my test, > > here is the result: > > iihero=# select test(); > INFO: 1 > INFO: 2 > INFO: 3 > INFO: 4 > INFO: 5 > INFO: 6 > INFO: 7 > INFO: EXECQ: 1 > test > ------ > > (1 row) > > > ------------------ > ~~~~~~~~~~~~~~~~~~~~~~~~~ > iihero > http://www.sql9.com > http://www.sql6.com > ~~~~~~~~~~~~~~~~~~~~~~~~~
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера