From: | Forest Wilkinson <fspam(at)home(dot)com> |
---|---|
To: | Karel Zak <zakkr(at)zf(dot)jcu(dot)cz> |
Cc: | pgsql-sql(at)hub(dot)org |
Subject: | Re: C functions and int8? |
Date: | 2000-09-22 00:35:27 |
Message-ID: | 67alssorhjla484lck04khhju83h6g4aji@4ax.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2000-09-22 02:06:27 | Re: C functions and int8? |
Previous Message | Hiroshi Inoue | 2000-09-21 21:28:18 | RE: sql query not using indexes |