pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Goran Thyni <goran@bildbasen.se>
To: David.Gross@wanadoo.fr
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] using c++ for functions
Date: Mon, 13 Jul 1998 20:43:47 +0000
Message-ID: <35AA7183.9310C286@bildbasen.se> (raw)
References: <35A9B202.90637974@wanadoo.fr>

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.



view thread (3+ messages)

Message-ID: <35AA7183.9310C286@bildbasen.se>
Permalink:  ../35AA7183.9310C286@bildbasen.se/
Also on:    postgresql.org/message-id/35AA7183.9310C286@bildbasen.se

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: goran@bildbasen.se, David.Gross@wanadoo.fr
  Subject: Re: [INTERFACES] using c++ for functions
  In-Reply-To: <35AA7183.9310C286@bildbasen.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox