Обсуждение: FuncCallContext's call_cntr & max_calls are uint64

Поиск
Список
Период
Сортировка

FuncCallContext's call_cntr & max_calls are uint64

От
vicky_vergara@hotmail.com
Дата:
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/9.5/static/spi-examples.html
Description:

Hello:

This documentation issue is for 9.6 (I don't know if it also applies for
9.5, but I am sure it does not apply for 9.4)

In section 36.9.9
https://www.postgresql.org/docs/current/static/xfunc-c.html

says:

uint32 call_cntr;
...
uint32 max_calls;

based on:
http://doxygen.postgresql.org/funcapi_8h_source.html#l00057

It should say:

uint64 call_cntr;
...
uint64 call_cntr;



Re: FuncCallContext's call_cntr & max_calls are uint64

От
Tom Lane
Дата:
vicky_vergara@hotmail.com writes:
> In section 36.9.9
> https://www.postgresql.org/docs/current/static/xfunc-c.html
> says:
> uint32 call_cntr;
> uint32 max_calls;
> It should say:
> uint64 call_cntr;

Yeah, you're right.  I missed that while widening those counters.
Will fix, thanks!

            regards, tom lane