Re: C functions and int8? - Mailing list pgsql-sql

From Forest Wilkinson
Subject Re: C functions and int8?
Date
Msg-id 67alssorhjla484lck04khhju83h6g4aji@4ax.com
Whole thread Raw
In response to Re: C functions and int8?  (Karel Zak <zakkr@zf.jcu.cz>)
Responses Re: C functions and int8?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
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



pgsql-sql by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: RE: sql query not using indexes
Next
From: Tom Lane
Date:
Subject: Re: C functions and int8?