Re: [HACKERS] PostgreSQL Backend as SW Gateway to Oracle - Mailing list pgsql-hackers

From Armin Schloesser
Subject Re: [HACKERS] PostgreSQL Backend as SW Gateway to Oracle
Date
Msg-id Pine.LNX.3.95.980709080212.11050A-100000@papkas
Whole thread Raw
In response to Re: [HACKERS] PostgreSQL Backend as SW Gateway to Oracle  (Bruce Momjian <maillist@candle.pha.pa.us>)
Responses Re: [HACKERS] PostgreSQL Backend as SW Gateway to Oracle
Re: [HACKERS] PostgreSQL Backend as SW Gateway to Oracle
Re: [HACKERS] PostgreSQL Backend as SW Gateway to Oracle
List pgsql-hackers
Hello Bruce,

thanks for your reply.

I already have anticipated that there is no off the shelf solution for my
problem.

A wrapper linpq I dont't want to use, cause then I would have to link
against different stuff coneccting to PostgreSQL and Oracle. I want to
have this switching done not in my application, but in a separate process.

After all the Oracle client SW is not available under Linux.

Nevertheless I would like to implement this Oracle Gateway using the
PostgeSQL stuff.

Now the problem for me is how to get used to the backend architecture as
fast as possible. That means is there any more deeper technical doku
available, describing the backend control flow and architekture.
Especially the layout of list and nodes structure of the parser.

Cause using the Oracle OCI there has to be some preprocessing done to
parse the libpq SQL strings for binding input and output variables to. So
a simple SELECT call is not mappable to a single OCI call.

If there are also other guys outside interested in this approach, it would
be perhaps worth to discuss also their requirements to get a proper
functional spec to implement the SW gateway.

Sorry for the long lines. I used the netscape to generate the mail and he
doen't complain about long lines. I will use the good old pine in the
future.

Greetings,

Dr. Armin. Schloesse

==============================================================================
Philips Automation Projects               Phone:  +49 561 501 1395
Miramstr. 87                              Fax:    +49 561 501 1688
34123 Kassel                              Email:  armin@ap-kas.ie.philips.com
Germany
==============================================================================

On Wed, 8 Jul 1998, Bruce Momjian wrote:

> (still using the libpg). >  > Now after this lengthy introduction my
> questions: >  > 1 Could you give me more information on how and where to
> hook into the backend code to implement this >  >   stuff. >  > 2 Is
> there anyone outside that will be interested also in this approach. >  >
> 3 Are you interested in getting back the new stuff >  > Thanks a lot for
> your patience!! >  > Greetings, >  > Dr. Armin. Schloesser >  >
>
> [See what happens when you send lines >80.]
>
> You want to use libpq to send that through the backend, and then pass it
> to Oracle.  Some people have asked for this, but I know of know way to
> accomplish this.  Your best be would be to create a fake libpq, that has
> the same function names/behavior, but calls native Oracle C functions.
>
>
> --
> Bruce Momjian                          |  830 Blythe Avenue
> maillist@candle.pha.pa.us              |  Drexel Hill, Pennsylvania 19026
>   +  If your life is a hard drive,     |  (610) 353-9879(w)
>   +  Christ can be your backup.        |  (610) 853-3000(h)
>


pgsql-hackers by date:

Previous
From: "Thomas G. Lockhart"
Date:
Subject: Recent updates
Next
From: dg@illustra.com (David Gould)
Date:
Subject: Re: [HACKERS] New s_lock.h fails on HPUX with gcc