35.9.2. Base Types in C-Language Functions

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

35.9.2. Base Types in C-Language Functions

PG Doc comments form
The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/12/xfunc-c.html
Description:

In "Table 35-1. Equivalent C Types for Built-in SQL Types", when SQL type is
"timestamp", the C type is reported to be "Timestamp * ", whereas it is
actually "Timestamp". I experienced it in version 9.3 but I guess it is also
the case in current version.
Best regards
Reply | Threaded
Open this post in threaded view
|

Re: 35.9.2. Base Types in C-Language Functions

Bruce Momjian
On Wed, Aug 26, 2020 at 01:59:42PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/12/xfunc-c.html
> Description:
>
> In "Table 35-1. Equivalent C Types for Built-in SQL Types", when SQL type is
> "timestamp", the C type is reported to be "Timestamp * ", whereas it is
> actually "Timestamp". I experienced it in version 9.3 but I guess it is also
> the case in current version.

Ah, yes, you are right --- Timestamp is an int64.  I will fix that with
the attatched patch.

--
  Bruce Momjian  <[hidden email]>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee


timestamp.diff (507 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 35.9.2. Base Types in C-Language Functions

Bruce Momjian
On Wed, Aug 26, 2020 at 07:09:04PM -0400, Bruce Momjian wrote:

> On Wed, Aug 26, 2020 at 01:59:42PM +0000, PG Doc comments form wrote:
> > The following documentation comment has been logged on the website:
> >
> > Page: https://www.postgresql.org/docs/12/xfunc-c.html
> > Description:
> >
> > In "Table 35-1. Equivalent C Types for Built-in SQL Types", when SQL type is
> > "timestamp", the C type is reported to be "Timestamp * ", whereas it is
> > actually "Timestamp". I experienced it in version 9.3 but I guess it is also
> > the case in current version.
>
> Ah, yes, you are right --- Timestamp is an int64.  I will fix that with
> the attatched patch.

Patch applied.

--
  Bruce Momjian  <[hidden email]>        https://momjian.us
  EnterpriseDB                             https://enterprisedb.com

  The usefulness of a cup is in its emptiness, Bruce Lee