PostgreSQL Emulation

From: "Roark, Rod" <rroark(at)stockval(dot)com>
To: "'pgsql-general(at)postgresql(dot)org'" <pgsql-general(at)postgresql(dot)org>
Subject: PostgreSQL Emulation
Date: 2000-04-05 17:02:58
Message-ID: 61281D05B47DD311A54F00C04F6454EA021E7B@EXCHSTV1
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I'm starting an interesting project for my company. We have a large, complex proprietary legacy database with a considerable suite of backend software that maintains it. The client applications are NT-based and access these flat files through Windows Networking or Netware.

Our mission is to turn it into client/server software, supporting multiple tiers of servers over TCP/IP. Also we'd like to have deliverables as we go along, rather than making it one huge monolithic project.

What I decided to do is to create a server that encapsulates the legacy database (which in the short term will not change) and emulates a simplified PostgreSQL server. This way we get immediate SQL connectivity for new client applications, and the ODBC/JDBC drivers are already done. Initially this is happening under NT but I have fantasies of porting to Linux.

I've already got quite a bit done, and have code acting as a "passthrough" to a real PG server, and displaying a line of tracing information for each message going back and forth. It's fully multithreaded. Next we'll start plugging in the legacy database and parsing the requests and delivering appropriate responses. Of course this will never be a general-purpose SQL server, as it only needs to deal with a particular kind of database. We'll eventually design some kind of protocol so that the server can replicate its data to another server at a lower tier.

I don't know what to call this kind of approach... it makes a lot of sense to me, but has anyone done this before? All comments are welcome.

Thanks!

-- Rod

Browse pgsql-general by date

  From Date Subject
Next Message Victor Manuel Jaquez Leal 2000-04-05 17:04:49 Functions in postgres
Previous Message Moray McConnachie 2000-04-05 16:31:17 Re: Web-based PSQL?