How to debugging a an external C function(IMMUTABLE STRICT )
В списке pgsql-general по дате отправления:
| От | Dave Potts |
|---|---|
| Тема | How to debugging a an external C function(IMMUTABLE STRICT ) |
| Дата | |
| Msg-id | 4F49F8C1.9070208@pinan.co.uk обсуждение исходный текст |
| Ответы |
Re: How to debugging a an external C function(IMMUTABLE STRICT )
|
| Список | pgsql-general |
Hi I have written an external C function to be called by postgres called using the LANGUAGE 'C' IMMUNTABLE STRICT interface Most of the time when call it, I get the expected results. Some times I get random rubbish in the result set. Postgres always gets the type of the arguments correct, ie it knowns the column x is a integer, column y is a float8 I called elog(NOTICE from within my code, the results always look correct, so I am assuming that I am sometimes returning a random pointer, or have got the arguments to BlessTupleDesc, MemoryContextSwitchTo wrong! If there any debug support in Postgres to catch this type of thing? Are there any useful functions have can be compiled in when building postgres??? I do not have access to things like Purify Dave
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера