pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Achilleus Mantzios <rnd@gatewaynet.com>
Cc: pgsql-general@postgresql.org
Subject: Re: C Function with Arrays Question
Date: Tue, 26 Mar 2002 10:33:06 -0500
Message-ID: <25821.1017156786@sss.pgh.pa.us> (raw)
In-Reply-To: <02032614000004.09965@pc216>
References: <02032614000004.09965@pc216>

Achilleus Mantzios <rnd@gatewaynet.com> writes:
> Is there a way of accessing _float8 (float8[]) values inside of
> a server-side C function??

There are some examples in the "FLOAT AGGREGATE OPERATORS" section of
src/backend/utils/adt/float.c.  construct_array() and
deconstruct_array() are the most general answers, but for fixed-width
element types like float8 you can cheat quite a lot.

> 	/* what happened to palloc in pgsql 7.2??,

Nothing.

> 	* Also what happened to postgres.h?? 

Also nothing.  Did you do "make install-all-headers"?

			regards, tom lane



view thread (2+ messages)

Message-ID: <25821.1017156786@sss.pgh.pa.us>
Permalink:  ../25821.1017156786@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/25821.1017156786@sss.pgh.pa.us

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: tgl@sss.pgh.pa.us, rnd@gatewaynet.com, pgsql-general@postgresql.org
  Subject: Re: C Function with Arrays Question
  In-Reply-To: <25821.1017156786@sss.pgh.pa.us>

* 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