Received: from hanna.kiruna.se (hanna.kiruna.se [193.45.225.41]) by hub.org (8.8.8/8.7.5) with ESMTP id QAA29761 for ; Mon, 13 Jul 1998 16:44:54 -0400 (EDT) Received: from bildbasen.se (goran@a205.dial.kiruna.se [193.45.238.21]) by hanna.kiruna.se (8.8.7/8.7.2) with ESMTP id WAA10400; Mon, 13 Jul 1998 22:46:41 +0200 Sender: goran@hanna.kiruna.se Message-ID: <35AA7183.9310C286@bildbasen.se> Date: Mon, 13 Jul 1998 20:43:47 +0000 From: Goran Thyni Organization: JMS Bildbasen X-Mailer: Mozilla 4.05 [en] (X11; U; Linux 2.0.33 i586) MIME-Version: 1.0 To: David.Gross@wanadoo.fr CC: pgsql-interfaces@postgreSQL.org Subject: Re: [INTERFACES] using c++ for functions References: <35A9B202.90637974@wanadoo.fr> Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit David GROSS wrote: > > Hello, > > I would like to know if it is possible to use C++ code > to define new functions in Postgres, something like : > > create function ... returns ... as '...' language 'c++'; > > It works very well for C functions, but with C++ (on unix/linux > systems), postgres > can't find the function in the symbol table. > David, C++ does many things implicitely (behind your back) and is therefore not suitable for embedded code such as device drivers och loadable function. Besides, I can see no reasons to choose C++ over C for small things like this (except political, of course). (Flames by private mail, please) Hopefully we will be able to use PL/pgSQL or PL/Perl for this in future releases of pgsql. best regards, Göran.