Received: from office.nextbus.com (ns.nextbus.com [64.164.28.194]) by postgresql.org (8.11.3/8.11.4) with ESMTP id f7KMwkP53706; Mon, 20 Aug 2001 18:58:47 -0400 (EDT) (envelope-from laurette@nextbus.com) Received: from visor.corp.nextbus.com (visor.corp.nextbus.com [192.168.1.109]) by office.nextbus.com (Postfix) with ESMTP id 392B04F87A; Mon, 20 Aug 2001 15:58:39 -0700 (PDT) Received: from localhost (laurette@localhost) by visor.corp.nextbus.com (8.11.2/8.8.7) with ESMTP id f7KMvIV26811; Mon, 20 Aug 2001 15:57:18 -0700 X-Authentication-Warning: visor.corp.nextbus.com: laurette owned process doing -bs Date: Mon, 20 Aug 2001 15:57:18 -0700 (PDT) From: Laurette Cisneros X-X-Sender: To: Cc: Subject: quick server c question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200108/71 X-Sequence-Number: 2007 Hi all, My c is rusty and you are all pros!...so... I want to write a server routine that will return a string so that when "SELECT retstr() from tbl;" is executed this string is returned. What's the best way to do this? i.e. create: CREATE FUNCTION retstr() RETURNS char??? AS '/tmp/tst.so' LANGUAGE 'c'; c code: #include postgres.h char * ???? retstr() { do something return string; } Thanks for the help, -- Laurette