Re: Remote connections? - Mailing list pgsql-hackers

From mlw
Subject Re: Remote connections?
Date
Msg-id 3C10C6B0.865669C1@mohawksoft.com
Whole thread Raw
In response to Re: Remote connections?  (Oleg Bartunov <oleg@sai.msu.su>)
List pgsql-hackers
The dblink code is a very cool idea.

It got me thinking, what if, just thinking out load here, it was redesigned as
something a little more grandeous.

Imagine this:


select dblink('select * from table', 'table_name', 'db=oracle.test user=chris
passwd=knight', 1) as t1, dblink('table2_name', 1) as t2


Just something to think about. 

The first instance of dblink would take 4 parameters: query, table which it
returns, connect string, and link token.

The second instance of dblink would just take the name of the table which it
returns and a link token.

The cool bit is the notion that the query string could specify different
databases or even .DBF libraries. 

Just something to think about.

It would REALLY be great if functions could return multiple tuples!


pgsql-hackers by date:

Previous
From: merlin
Date:
Subject: OpenBSD snapshot failure
Next
From: Tom Lane
Date:
Subject: Re: Intermediate report for AIX 5L port