Re: custom C function problem

Поиск
Список
Период
Сортировка
От Dan \"Heron\" Myers
Тема Re: custom C function problem
Дата
Msg-id 481D0162.1010702@xnapid.com
обсуждение исходный текст
Ответ на Re: custom C function problem  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: custom C function problem
Список pgsql-general

Tom Lane wrote:
> Well, there's nothing wrong with that C code, so the problem is
> someplace else.
>
> Did you remember to declare the function STRICT?  If not, and if
> there are any nulls in your test table, a crash would be expected;
> there's nothing in this function that's guarding against a null
> pointer dereference.

I did declare the function STRICT, yes.

I'm wondering if maybe there is a dependency somewhere I'm missing.  I
link with postgres.lib to create the dll; I basically made an educated
guess as to what to link with to get rid of linker errors, since the
documentation didn't really say I needed to link with anything, but I
suppose it's possible that there is another .lib somewhere that I should
link with instead.  Is there anyone who has experience writing custom C
functions for Postgres that could weigh in here?

Thanks,
Dan

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

Предыдущее
От: Adrian Klaver
Дата:
Сообщение: Re: Problems in queries
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: large query by offset and limt