Re: PostgreSQL port to pure Java? - Mailing list pgsql-hackers

From Neil Conway
Subject Re: PostgreSQL port to pure Java?
Date
Msg-id 87oeuhrjy0.fsf@mailbox.samurai.com
Whole thread Raw
In response to Re: PostgreSQL port to pure Java?  (Andrew Dunstan <andrew@dunslane.net>)
Responses Re: PostgreSQL port to pure Java?  ("D'Arcy J.M. Cain" <darcy@druid.net>)
Re: PostgreSQL port to pure Java?  (Andrew Dunstan <andrew@dunslane.net>)
Re: PostgreSQL port to pure Java?  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
List pgsql-hackers
Andrew Dunstan <andrew@dunslane.net> writes:
> Frank Wiles wrote:
>> Not to mention it would kill PostgreSQL's current speedy
>> performance!

> Maybe, maybe not. Modern JVMs have much better performance
> characteristics than was once the case. Also, some of the things
> that Java buys you (memory management, threading, for example) might
> actually enhance performance in some circumstances.

I'm pretty skeptical that Java's GC could get better performance than
palloc. As for threading, ISTM Java doesn't offer anything we couldn't
get through POSIX threads if we were going to contemplate a full-scale
rewrite anyway (which I think everyone agrees that we aren't).

> As a Java programmer, I do agree that having a pure Java RDBMS
> system would be a Good Thing (tm)

Are there any advantages that this would provide that we could get
without investing so much effort? For example, PL/Java seems like a
reasonable approach to Java & PG integration that doesn't involve
rewriting hundreds of thousands of lines of code.

-Neil

P.S. While we're contemplating pies-in-the-sky, I'd personally love to
rewrite PostgreSQL in Objective Caml.



pgsql-hackers by date:

Previous
From: Elliot Lee
Date:
Subject: Re: Something's not (de)compressing right
Next
From: Josh Berkus
Date:
Subject: Re: Proposed Query Planner TODO items