WARNING! This URL (in the Main cluster) is no longer the authoritative source for this page; it has been moved to the VOS or ODS cluster as appropriate instead.
See Tim Haynes in case of confusion.
Linking PostgreSQL Database Objects into Virtuoso
Start the Virtuoso Web User Interface.
Select the Conductor link in the left frame and login as the dba user.
Select the Databases -> External Data Source -> Data Sources tab menu items.
Select the Connect button for the pg7maPostgreSQL DSN.
On successful connection, select the Link Objects button to obtain a list of available tables.
Select all the tables that you would like to link.
Change the Catalog for each table to be PGR using the Set All button.
All the catalog names are changed to PGR.
Select the Link button to link the selected tables into Virtuoso.
On completion of the Link process, the tables will be displayed in the External Linked Objects tab.
The linked tables can be queried by clicking on the hyperlink in the Local Name column of the External Linked Objects tab above.
This loads the Virtuoso Interactive SQL interface with the required SQL Select for retrieving the remote table data.
We shall use the PGR.PGR.Customers table to demonstrate this.
Click the Execute button to run the query and retrieve results from the remote table.
The tables can also be viewed as part of the Virtuoso SQL Schema Objects under the PGR catalog name.
The Link process is now complete enabling the tables to be queried as if part of the Virtuoso Schema.