Return-Path: owner-postman
Received: from localhost (localhost [127.0.0.1]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with SMTP id IAA29688 for postgres-dist; Tue, 8 Mar 1994 08:26:01 -0800
Resent-From: POSTGRES mailing list <postman@postgres.Berkeley.EDU>
Resent-Message-Id: <199403081626.IAA29688@nobozo.CS.Berkeley.EDU>
X-Authentication-Warning: nobozo.CS.Berkeley.EDU: Host localhost didn't use HELO protocol
Sender: owner-postman@postgres.Berkeley.EDU
X-Return-Path: owner-postman
Received: from sunic.sunet.se (sunic.sunet.se [192.36.125.2]) by nobozo.CS.Berkeley.EDU (8.6.4/8.6.3) with ESMTP id IAA29674 for <POSTGRES@postgres.berkeley.edu>; Tue, 8 Mar 1994 08:25:57 -0800
From: martin@pozn1v.tup.edu.pl
Received: from cocos.fuw.edu.pl by sunic.sunet.se (8.6.4/2.03)
	id RAA26978; Tue, 8 Mar 1994 17:25:41 +0100
Received: from perseus.tup.edu.pl ([150.254.5.1]) by cocos.fuw.edu.pl (4.1/SMI-4.1)
	id AA18957; Tue, 8 Mar 94 17:25:53 +0100
Received: from pozn1v.tup.edu.pl by perseus.tup.edu.pl
	id aa06786; Tue, 8 Mar 94 17:24:05 MET
Received: by pozn1v.tup.edu.pl (MX V3.3 VAX) id 3260; Tue, 08 Mar 1994 17:23:53
          MET
Date: Tue, 08 Mar 1994 17:23:49 MET
To: POSTGRES@postgres.Berkeley.EDU
Message-Id: <0097B230.5E9F94C0.3260@pozn1v.tup.edu.pl>
Subject: functions returning TUPLE type
Resent-To: postgres-dist@postgres.Berkeley.EDU
Resent-Date: Tue, 08 Mar 94 08:26:01 -0800
Resent-XMts: smtp


Hello everybody,

I am trying to define a C function returning tuples to Postgres.
It's easy to define a function like that:

TUPLE f(t)
TUPLE t;
{
   return(t);
}

and reference it :

retrieve (emp.all) where emp.f.salary>300

However, the tuples returned by the f function (that should be identical)
are apparently changed-- the values are different. Could somebody
advise me what's the problem?
Thanks in advance,
Martin

M.Januchta   ICS, Poznan Tech.University
martin@pozn1v.tup.edu.pl      Poznan,Poland

