Re: Showing debug messages in my C function

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Showing debug messages in my C function
Дата
Msg-id 9369.1271189044@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Showing debug messages in my C function  (Jorge Arevalo <jorgearevalo@gis4free.org>)
Ответы Re: Showing debug messages in my C function  (Jorge Arevalo <jorgearevalo@gis4free.org>)
Список pgsql-general
Jorge Arevalo <jorgearevalo@gis4free.org> writes:
> I'm sorry, because this may be a simple question: I'm programming a C
> function that returns a set (PostgreSQL 8.4). The function crash, and
> I'm trying to
> debug it. I've read:

> http://www.postgresql.org/docs/8.4/interactive/xfunc-c.html
> http://www.postgresql.org/docs/8.4/interactive/error-message-reporting.html
> http://www.postgresql.org/docs/current/static/runtime-config-logging.html

> but I can't see any of my log messages.

Seems likely to me that the function is crashing before it gets to any
of the elog calls; which would most likely be a problem in linking or in
declaring the function.  Did you remember to use the
PG_FUNCTION_INFO_V1() macro?  Try writing a trivial function that only
does an elog and see what it takes to get that to work.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: psql's \d display of unique index vs. constraint
Следующее
От: Scott Marlowe
Дата:
Сообщение: Re: psql's \d display of unique index vs. constraint