Re: [EXTERNAL] Re: FDW, connections, master v replica

From: Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>
To: "Godfrin, Philippe E" <philippe(dot)godfrin(at)nov(dot)com>, pgsql-admin(at)lists(dot)postgresql(dot)org
Subject: Re: [EXTERNAL] Re: FDW, connections, master v replica
Date: 2021-05-18 16:27:50
Message-ID: e710b9cf36ab776d74ff83a1baf21a656bdd2797.camel@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Tue, 2021-05-18 at 16:13 +0000, Godfrin, Philippe E wrote:
> That seems very promising, though I’m not certain how I’d code that in the create
> foreign server syntax. My testbed is not quire ready right now, so I’ll ask instead of testing.
> Is this what you mean:
>
> CREATE SERVER FDW001 FOREIGN DATA WRAPPER POSTGES_FDW
> OPTIONS (HOST ‘FOORW, FOORO’, DBNAME ‘FOODB,FOODB’, PORT ‘5432,6432’,
> TARGET_SESSION_ATTRS ‘ANY,READ-ONLY’

Pretty much, yes. Except you can only specify a single setting for
"target_session_attrs".

Yours,
Laurenz Albe
--
Cybertec | https://www.cybertec-postgresql.com

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Godfrin, Philippe E 2021-05-19 14:51:40 RE: [EXTERNAL] Re: FDW, connections, master v replica
Previous Message Godfrin, Philippe E 2021-05-18 16:13:10 RE: [EXTERNAL] Re: FDW, connections, master v replica