agora inbox for postgres@postgres.berkeley.edu
help / color / mirror / Atom feedFrom: Dieter.Pfoser <pfoser@wins.uia.ac.be>
To: Postgres Mailing List <postgres@postgres.Berkeley.EDU>
Subject: Problems with C-functions
Date: Mon, 23 Jan 1995 09:39:03 +0100 (MET)
Message-ID: <Pine.3.89.9501230935.A16084-0100000@wins> (raw)
Hi,
for my application I have to implement my own C-functions in Postgres.
The problem with it is that if you wanna use a type different from
int as a formal parameter or return-value, you must use a reference
(pointer) to this type. (Described in the postgres manual)
Passing values is no problem, but as soon as you assign them to local
variables in your function (use it), the backend crashes.
So if anybody has experienced the same problems and found a solution,
please let me know.
I am using postgres-v4.2 on a Sun5 Workstation. I compiled it with the
modified gcc 2.5.8.
Dieter Pfoser
University of Antwerp, Belgium
==============================================================================
To add/remove yourself to/from the POSTGRES mailing list: send mail with
the subject line ADD or DEL to "postgres-request@postgres.Berkeley.EDU".
If this fails, send mail to "post_questions@postgres.Berkeley.EDU" and
a human will deal with it. DO NOT post to the "postgres" mailing list.
==============================================================================
URL: http://s2k-ftp.CS.Berkeley.EDU:8000/postgres/
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: postgres@postgres.berkeley.edu
Cc: pfoser@wins.uia.ac.be
Subject: Re: Problems with C-functions
In-Reply-To: <Pine.3.89.9501230935.A16084-0100000@wins>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox