Re: Improper use about DatumGetInt32 - Mailing list pgsql-hackers

From Tom Lane
Subject Re: Improper use about DatumGetInt32
Date
Msg-id 991317.1600712546@sss.pgh.pa.us
Whole thread Raw
In response to Re: Improper use about DatumGetInt32  (Robert Haas <robertmhaas@gmail.com>)
List pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> Typically, the DatumGetBlah() function that you pick should match the
> SQL data type that the function is returning. So if the function
> returns pg_catalog.int4, which corresponds to the C data type int32,
> you would use DatumGetInt32. There is no SQL type corresponding to the
> C data type uint32, so I'm not sure why we even have DatumGetUInt32.

xid?

            regards, tom lane



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: recovering from "found xmin ... from before relfrozenxid ..."
Next
From: Tom Lane
Date:
Subject: Re: pgindent vs dtrace on macos