Re: .NET or Mono functions in PG

From: James Mansion <james(at)mansionfamily(dot)plus(dot)com>
To: Magnus Hagander <magnus(at)hagander(dot)net>
Cc: Gevik Babakhani <pgdev(at)xs4all(dot)nl>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: .NET or Mono functions in PG
Date: 2007-12-01 12:09:09
Message-ID: 47514EE5.3090808@mansionfamily.plus.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Magnus Hagander wrote:
> I did look at this at some earlier point as well. One big problem at that
> time was that once you embedded mono, yuo had all sorts of threads running
> in your backend ;-)
>
Is that necessarily a problem? You have to compile with a
thread-capable libc and take some
care that the heap implementation is well tuned, but there's no reason
why the mono housekeeping
threads should cause you any problem is there? It should be much like
the embedded Java.
> Another way to do it is "the PL/J" way (I think). Which is starting up a
> separate process with the VM in it and then do RPC of some kind to it.
> Which has more overhead per call, but lower per backend etc. And a lot less
> "dangerous".
>
>
Given that one would want to embed to have very low latency both on
trigger invocation and
on calls back into the data engine, I don't really see the point personally.

I'm not sure how important it is to make the embeded interface look like
a standard
interface (in that way that the embedded CLR in MSSQL does - mostly) or
whether
it can be a thin wrapper over the C API. I think there's good mileage
in starting
with the thin wrapper, then at least some common business logic code can
be used.

James

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Magnus Hagander 2007-12-01 12:20:38 Re: .NET or Mono functions in PG
Previous Message Gregory Stark 2007-12-01 11:25:59 Re: Replacement Selection