From: Ron <ronljohnsonjr@gmail.com>
To: pgsql-admin@lists.postgresql.org
Subject: Re: Connecting 2 databases within the same instance
Date: Fri, 13 Oct 2023 21:15:43 -0500
Message-ID: <cdf55db3-bb2e-79a9-f683-5f2d7c77e6eb@gmail.com> (raw)
In-Reply-To: <DM4PR19MB5978456A60BFFC859BEB889ED3D1A@DM4PR19MB5978.namprd19.prod.outlook.com>
References: <PH2P110MB0922C926B5D471091BFD1304FFD2A@PH2P110MB0922.NAMP110.PROD.OUTLOOK.COM>
<DM4PR19MB597815380401626E1787AD49D3D2A@DM4PR19MB5978.namprd19.prod.outlook.com>
<1546706033.6267226.1697247420904@mail.yahoo.com>
<DM4PR19MB5978456A60BFFC859BEB889ED3D1A@DM4PR19MB5978.namprd19.prod.outlook.com>
Google is your friend. Searching for "postgresql dblink" and "postgresql
fdw" take you right to the documentation:
https://www.postgresql.org/docs/15/dblink.htmlhttps://www.postgresql.org/docs/current/postgres-fdw.html
DB Link is much older, while FDW has better syntax and is usually faster:
"
The functionality provided by this module overlaps substantially with the
functionality of the olderdblink
<https://www.postgresql.org/docs/current/dblink.html>module.
But|postgres_fdw|provides more transparent and standards-compliant syntax
for accessing remote tables, and can give better performance in many cases.
"
On 10/13/23 20:40, M Sarwar wrote:
> Hi,
> Are you saying that Db Link is existing in the Postgress or just referring
> to FDW ?
> Sarwar
>
>
>
>
> Sent from my Galaxy
>
>
>
> -------- Original message --------
> From: swastik Gurung <gurung_swastik@yahoo.com>
> Date: 10/13/23 9:37 PM (GMT-05:00)
> To: pgsql-admin@postgresql.org, M Sarwar <sarwarmd02@outlook.com>
> Subject: Re: Connecting 2 databases within the same instance
>
> I think any of the two contrib module dblink and/or postgres_fdw could help
> On Saturday, 14 October 2023 at 03:38:33 GMT+5:45, M Sarwar
> <sarwarmd02@outlook.com> wrote:
>
>
>
> Hello,
>
> I have one instance and two database within it. What is the simplest
> approach which I can adopt to connect these 2 database to one another.
>
> I want to have the ability to connect to any table. For example database
> link in Oracle databases. How can I deploy this gracefully?
>
> Thanks,
>
> Sarwar
>
--
Born in Arizona, moved to Babylonia.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: ronljohnsonjr@gmail.com, pgsql-admin@lists.postgresql.org
Subject: Re: Connecting 2 databases within the same instance
In-Reply-To: <cdf55db3-bb2e-79a9-f683-5f2d7c77e6eb@gmail.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox