Return-Path: owner-postman
Received: from localhost.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id AAA21478 for postgres-redist; Mon, 23 Jan 1995 00:38:54 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199501230838.AAA21478@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost.Berkeley.EDU didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from wins.uia.ac.be (pfoser@wins.uia.ac.be [143.169.1.20]) by nobozo.CS.Berkeley.EDU (8.6.9/8.6.3) with SMTP id AAA21468 for <postgres@postgres.berkeley.edu>; Mon, 23 Jan 1995 00:38:49 -0800
Received: by wins.uia.ac.be (5.0/SMI-SVR4)
	id AA16233; Mon, 23 Jan 1995 09:39:04 +0100
Date: Mon, 23 Jan 1995 09:39:03 +0100 (MET)
From: "Dieter.Pfoser" <pfoser@wins.uia.ac.be>
Subject: Problems with C-functions
To: Postgres Mailing List <postgres@postgres.Berkeley.EDU>
Message-Id: <Pine.3.89.9501230935.A16084-0100000@wins>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
content-length: 636
Resent-To: postgres-redist@postgres.Berkeley.EDU
Resent-Date: Mon, 23 Jan 95 00:38:54 -0800
Resent-XMts: smtp

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/
