Received: from mail.rdc1.sdca.home.com (imail@ha1.rdc1.sdca.home.com [24.0.3.66]) by hub.org (8.10.1/8.10.1) with ESMTP id e8M0Yas39918 for ; Thu, 21 Sep 2000 20:34:36 -0400 (EDT) Received: from tajar ([24.1.6.224]) by mail.rdc1.sdca.home.com (InterMail vM.4.01.03.00 201-229-121) with SMTP id <20000922003434.QIUO15602.mail.rdc1.sdca.home.com@tajar>; Thu, 21 Sep 2000 17:34:34 -0700 From: Forest Wilkinson To: Karel Zak Cc: pgsql-sql@hub.org Subject: Re: C functions and int8? Date: Thu, 21 Sep 2000 17:35:27 -0700 Message-ID: <67alssorhjla484lck04khhju83h6g4aji@4ax.com> References: In-Reply-To: X-Mailer: Forte Agent 1.8/32.548 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200009/179 That's an int8 meaning "eight bit integer". I want to work with an int8 meaning "64 bit integer", as described in the docs: http://www.postgresql.org/users-lounge/docs/7.0/user/datatype.htm#AEN942 So how do I return one of these suckers from a C function? Forest On Thu, 21 Sep 2000 10:32:50 +0200 (CEST), Karel Zak wrote: > >On Thu, 21 Sep 2000, Forest Wilkinson wrote: > >> I have written a few Postgres extension functions in C, and want to modify >> some of them to return an int8. However, I don't see any int8 definition >> in postgres.h. (I have the 7.0.2 RPMs installed.) How should I >> accomplish this? > > in the source tree: src/include/c.h > > typedef signed char int8; /* == 8 bits */ > > > ... but I not sure if this file is included in the RPM package. > > > Karel