Re: External Database Connection

From: mlw <markw(at)mohawksoft(dot)com>
To: "Sean K(dot) Sell" <sean(at)nist(dot)gov>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: External Database Connection
Date: 2001-10-29 17:30:15
Message-ID: 3BDD9227.D7C7F58D@mohawksoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"Sean K. Sell" wrote:

> Has anyone successfully hacked an external database table as a view.
>
> I was thinking that this may be possible using a C function and the Rules architecture but I don't have much experience with PostgreSQL so I thought I
> would check with the list to see what if anything others had attempted.
>

Using C functions, you could probably do something like this:

create view dbname_table as select ext_query('select * from table', 'dbname'), extq_col_varchar('foo') as foo, extq_col_numeric('bar') as bar

It would not be a generic solution, but it could be done with today's sources.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Ross J. Reedstrom 2001-10-29 17:31:54 Re: Serious performance problem
Previous Message Tom Lane 2001-10-29 17:18:55 Re: Proposed new create command, CREATE OPERATOR CLASS