pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Forest Wilkinson <fspam@home.com>
To: Karel Zak <zakkr@zf.jcu.cz>
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> (raw)
In-Reply-To: <Pine.LNX.3.96.1000921103030.6462C-100000@ara.zf.jcu.cz>
References: <g7gjssk7jo2rq208b3a7usml6gffntt8vo@4ax.com>
	<Pine.LNX.3.96.1000921103030.6462C-100000@ara.zf.jcu.cz>

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




view thread (4+ messages)  latest in thread

Message-ID: <67alssorhjla484lck04khhju83h6g4aji@4ax.com>
Permalink:  ../67alssorhjla484lck04khhju83h6g4aji@4ax.com/
Also on:    postgresql.org/message-id/67alssorhjla484lck04khhju83h6g4aji@4ax.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: fspam@home.com, zakkr@zf.jcu.cz, pgsql-sql@hub.org
  Subject: Re: C functions and int8?
  In-Reply-To: <67alssorhjla484lck04khhju83h6g4aji@4ax.com>
  References: <g7gjssk7jo2rq208b3a7usml6gffntt8vo@4ax.com> <Pine.LNX.3.96.1000921103030.6462C-100000@ara.zf.jcu.cz> <67alssorhjla484lck04khhju83h6g4aji@4ax.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox