Return-Path: forrest
Received: by postgres.Berkeley.EDU (5.61/1.29)
	id AA06209; Mon, 19 Jul 93 14:22:05 -0700
Message-Id: <9307192122.AA06209@postgres.Berkeley.EDU>
From: qiu@cs.WPI.EDU (Ke Qiu)
Subject: dynamic loaded function that takes array as argument
To: postgres@postgres.berkeley.edu
Sender: pg_adm@postgres.berkeley.edu
To: postgres@postgres.berkeley.edu
Date: Mon, 19 Jul 93 16:18:59 EDT
X-Mailer: ELM [version 2.3 PL11]

 Hi,
 
 The "overpaid" function in demo takes a TUPLE as an argument. How can I write
 and define a C funtion that take a set of TUPLE as arguments, or generally
 take arrays as argumets.
 
 The following is my failed definition:
 
 
 Welcome to the C POSTGRES terminal monitor
 monitor \i
 mkarray.pq
 
 Query sent to backend is 
 "define function gMkArrayTest (      language = "c", returntype = int4)
 arg is (char16[])     as "/usr/users/qiu/grass/funs/gmkarraystr.o" "
 
 WARN:Jul 19 12:18:49:parser: syntax error at or near "["
 
 Query sent to backend is "define function gMkArrayStr (      language = "c",
                          returntype = char16[])      
 as "/usr/users/qiu/grass/funs/gmkarraystr.o" "
 
 WARN:Jul 19 12:18:49:parser: syntax error at or near "["
 
 
 
 Thanks in advance.
 
 ----
 
 
 Ke Qiu
 Computer Science Dept.
 Worcester Polytechnic Institute
 
 qiu@hardy.wpi.edu
 


-- 
