Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 37AE2474E4E for ; Tue, 26 Mar 2002 10:33:13 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.11.4/8.11.4) with ESMTP id g2QFX6S25825; Tue, 26 Mar 2002 10:33:06 -0500 (EST) To: Achilleus Mantzios Cc: pgsql-general@postgresql.org Subject: Re: C Function with Arrays Question In-reply-to: <02032614000004.09965@pc216> References: <02032614000004.09965@pc216> Comments: In-reply-to Achilleus Mantzios message dated "Tue, 26 Mar 2002 14:00:00 +0200" Date: Tue, 26 Mar 2002 10:33:06 -0500 Message-ID: <25821.1017156786@sss.pgh.pa.us> From: Tom Lane X-Archive-Number: 200203/1234 X-Sequence-Number: 22594 Achilleus Mantzios 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