| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | Achilleus Mantzios <rnd(at)gatewaynet(dot)com> |
| Cc: | pgsql-general(at)postgresql(dot)org |
| Subject: | Re: C Function with Arrays Question |
| Date: | 2002-03-26 15:33:06 |
| Message-ID: | 25821.1017156786@sss.pgh.pa.us |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general pgsql-sql |
Achilleus Mantzios <rnd(at)gatewaynet(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tim Barnard | 2002-03-26 15:35:26 | Re: libpqxx has HTML docs |
| Previous Message | paresh joshi | 2002-03-26 14:29:19 | PgGuardian.exe |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Josh Berkus | 2002-03-26 16:44:24 | Re: Arrays Design Question |
| Previous Message | Arguile | 2002-03-26 14:16:42 | Re: Cleaning up template 1 |