Re: question about relation_open

Поиск
Список
Период
Сортировка
От Rahila Syed
Тема Re: question about relation_open
Дата
Msg-id CAH2L28tOY+4KG0oM9i+4Ob4Td+zsiphpj5ucTvSWVOhfpBzYDQ@mail.gmail.com
обсуждение исходный текст
Ответ на question about relation_open  (Giampaolo Capelli <giampow@gmail.com>)
Ответы Re: question about relation_open
Список pgsql-hackers
Hi,


I want to call the function ReadBufferExtended
to get the raw data of a given buffer
and I've read in some examples that I need to call relation_open
first, in order to get a Relation variable and also lock the relation.

The function relation_open returns a non NULL pointer in my extension, but then the last line in the following snippet crashes postgres.
 
You mentioned that the postgres crashes. Did you mean it caused a Segmentation fault or something else like PANIC? 
If possible, can you share a core dump in that case? 

Also, can you share any errors that you see in logs when postgres crashes?

Thank you,
Rahila Syed

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