Documentation missing bigint?

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

Documentation missing bigint?

От:
Paul Jungwirth <pj@illuminatedcomputing.com>
Дата:
Hello,

The table of which C types represent which SQL types seems to be missing bigint:

http://www.postgresql.org/docs/9.3/static/xfunc-c.html#XFUNC-C-TYPE-TABLE

It looks like bigint should be listed and should correspond to an
int64 C type. Also I see there is an INT8OID, PG_GETARG_INT64,
DatumGetInt64, and Int64GetDatum---I think all for bigints. Does that
sound right? If so, would you like a documentation patch?

Thanks,
Paul


-- 
_________________________________
Pulchritudo splendor veritatis.

Re: Documentation missing bigint?

От:
Michael Paquier <michael.paquier@gmail.com>
Дата:
On Fri, Dec 12, 2014 at 5:03 AM, Paul Jungwirth
 wrote:
> http://www.postgresql.org/docs/9.3/static/xfunc-c.html#XFUNC-C-TYPE-TABLE
>
> It looks like bigint should be listed and should correspond to an
> int64 C type. Also I see there is an INT8OID, PG_GETARG_INT64,
> DatumGetInt64, and Int64GetDatum---I think all for bigints. Does that
> sound right? If so, would you like a documentation patch?
+1 for adding it.
-- 
Michael

Re: Documentation missing bigint?

От:
Bruce Momjian <bruce@momjian.us>
Дата:
Вложения:
On Thu, Dec 11, 2014 at 12:03:56PM -0800, Paul Jungwirth wrote:
> Hello,
> 
> The table of which C types represent which SQL types seems to be missing bigint:
> 
> http://www.postgresql.org/docs/9.3/static/xfunc-c.html#XFUNC-C-TYPE-TABLE
> 
> It looks like bigint should be listed and should correspond to an
> int64 C type. Also I see there is an INT8OID, PG_GETARG_INT64,
> DatumGetInt64, and Int64GetDatum---I think all for bigints. Does that
> sound right? If so, would you like a documentation patch?

Applied doc patch attached.  Thanks for the report.

-- 
  Bruce Momjian          http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + Everyone has their own god. +
FAQ