X-Original-To: pgsql-sql@postgresql.org Received: from fzkmail2.fzk.de (fzkmail2.fzk.de [141.52.27.52]) by postgresql.org (Postfix) with SMTP id 350F2474E53 for ; Mon, 17 Mar 2003 06:25:48 -0500 (EST) Received: FROM resy5.fzk.de BY fzkmail2.fzk.de ; Mon Mar 17 12:25:49 2003 +0100 Received: œby rodos.fzk.de with ESMTP (8.8.6 (PHNE_17135)/8.7.1) id MAA06463; Mon, 17 Mar 2003 12:25:48 +0100 (MET) Message-ID: <3E75B0BB.1F631FDC@rodos.fzk.de> Date: Mon, 17 Mar 2003 12:25:47 +0100 From: Christoph Haller X-Mailer: Mozilla 4.77 [en] (X11; U; HP-UX B.10.20 9000/780) X-Accept-Language: en MIME-Version: 1.0 To: pgsql-sql@postgresql.org Cc: susan@hexworx.com Subject: Re: Create function statement with insert statement Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 7bit X-Archive-Number: 200303/388 X-Sequence-Number: 12427 > > I can select from this table although the output is slightly different: > > lanname | lanispl | lanpltrusted | lanplcallfoid | lancompiler > ----------+---------+--------------+---------------+------------- > internal | f | f | 0 | n/a > C | f | f | 0 | /bin/cc > sql | f | f | 0 | postgres > (3 rows) > That's ok, it changed slightly between versions. Did you make any progress? > > Try re-writing your function in PL/pgSQL. BTW, I think I saw from your > other post that you don't have PL/pgSQL installed in the database you > are using. See the createlang program or CREATE LANGUAGE statement: > http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/app-createlang.html > http://www.us.postgresql.org/users-lounge/docs/7.3/postgres/sql-createlanguage.html > I think Joe is right. Try PL/pgSQL, it's much more flexible anyway. Regards, Christoph