Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kB4XW-0007vP-It for pgsql-docs@arkaria.postgresql.org; Wed, 26 Aug 2020 23:09:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1kB4XU-00071l-VK for pgsql-docs@arkaria.postgresql.org; Wed, 26 Aug 2020 23:09:08 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kB4XU-00071e-PJ for pgsql-docs@lists.postgresql.org; Wed, 26 Aug 2020 23:09:08 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kB4XS-00060w-IA for pgsql-docs@lists.postgresql.org; Wed, 26 Aug 2020 23:09:07 +0000 Received: from bruce by momjian.us with local (Exim 4.92) (envelope-from ) id 1kB4XQ-0006s2-U9; Wed, 26 Aug 2020 19:09:04 -0400 Date: Wed, 26 Aug 2020 19:09:04 -0400 From: Bruce Momjian To: ajulien@shaktiware.fr, pgsql-docs@lists.postgresql.org Subject: Re: 35.9.2. Base Types in C-Language Functions Message-ID: <20200826230904.GE13370@momjian.us> References: <159845038271.24995.15682121015698255155@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="MGYHOYXEY6WxJCY8" Content-Disposition: inline In-Reply-To: <159845038271.24995.15682121015698255155@wrigleys.postgresql.org> User-Agent: Mutt/1.10.1 (2018-07-13) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --MGYHOYXEY6WxJCY8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 https://momjian.us EnterpriseDB https://enterprisedb.com The usefulness of a cup is in its emptiness, Bruce Lee --MGYHOYXEY6WxJCY8 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="timestamp.diff" diff --git a/doc/src/sgml/xfunc.sgml b/doc/src/sgml/xfunc.sgml index 6de464c654..11addb3e27 100644 --- a/doc/src/sgml/xfunc.sgml +++ b/doc/src/sgml/xfunc.sgml @@ -2223,7 +2223,7 @@ memcpy(destination->data, buffer, 40); timestamp - Timestamp* + Timestamp datatype/timestamp.h --MGYHOYXEY6WxJCY8--