Re: extending by using procedurallanguage C : problems

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Feite Brekeveld <f(dot)brekeveld(at)osiris-it(dot)nl>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: extending by using procedurallanguage C : problems
Date: 2002-12-17 23:28:15
Message-ID: Pine.LNX.4.44.0212180027030.1005-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Feite Brekeveld writes:

> An example from an earlier version of postgres works fine:
> --------------------------------------------------------------
> #include "/usr/include/pgsql/server/postgres.h"
>
> double *ctof(double *deg)
> {

You probably inferred from that that you can also use int*. You can't.
int32's happen to be passed by value. But don't use the old interface.

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Doug Fields 2002-12-17 23:31:22 Re: Problem with VACUUM after very large delete?
Previous Message Robert Treat 2002-12-17 23:12:43 Re: Problem with VACUUM after very large delete?