Print warning when I execute my own extension function

Поиск
Список
Период
Сортировка
От Dong Wook Lee
Тема Print warning when I execute my own extension function
Дата
Msg-id CAAcByaKjA6ERo6_9OoKMP5covZpU=FtR=EP-PR2dJSqJ_YkD4g@mail.gmail.com
обсуждение исходный текст
Ответы Re: Print warning when I execute my own extension function  (Julien Rouhaud <rjuju123@gmail.com>)
Список pgsql-hackers
Hi hackers,
I've read in this blog (http://big-elephants.com/2015-10/writing-postgres-extensions-part-i/)
and I wrote an extension about base36_encode with c code
but when I executed a query like this below I got a warning below.

```
postgres=# SELECT base36_encode(123);
WARNING:  problem in alloc set ExprContext: detected write past chunk end in block 0x55fb75334d40, chunk 0x55fb75334d68
WARNING:  problem in alloc set ExprContext: detected write past chunk end in block 0x55fb75334d40, chunk 0x55fb75334d68
 base36_encode
---------------
 3f
(1 row)
```

I don't know what this warning means and how I can fix it. 

Thanks
Dong Wook Lee.

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

Предыдущее
От: Alexander Pyhalov
Дата:
Сообщение: Re: postgres_fdw and skip locked
Следующее
От: Julien Rouhaud
Дата:
Сообщение: Re: Print warning when I execute my own extension function