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

Поиск
Список
Период
Сортировка
От Godfrin, Philippe E
Тема RE: [EXTERNAL] Re: FDW, connections, master v replica
Дата
Msg-id SA0PR15MB3933508FF29BA19E494501F2822B9@SA0PR15MB3933.namprd15.prod.outlook.com
обсуждение исходный текст
Ответ на RE: [EXTERNAL] Re: FDW, connections, master v replica  ("Godfrin, Philippe E" <philippe.godfrin@nov.com>)
Список pgsql-admin

Hmm, wait a minute. Then how do you segregate connections by RO ?? I can’t wait until v14

 

Any will permit RO and RW,

 

From: Godfrin, Philippe E
Sent: Wednesday, May 19, 2021 9:52 AM
To: Laurenz Albe <laurenz.albe@cybertec.at>; pgsql-admin@lists.postgresql.org
Subject: RE: [EXTERNAL] Re: FDW, connections, master v replica

 

OK – so using target_session_attr=’read-write’ will use the show transaction_read_only command – if the reply is ‘on’ the connection is closed, which will then go to the next host/port combination… Seems to me, then, it’s the libpq operation that permits the selection…

 

Nice… Thanks very much.

 

From: Laurenz Albe <laurenz.albe@cybertec.at>
Sent: Tuesday, May 18, 2021 11:28 AM
To: Godfrin, Philippe E <Philippe.Godfrin@nov.com>; pgsql-admin@lists.postgresql.org
Subject: Re: [EXTERNAL] Re: FDW, connections, master v replica

 

Use caution when interacting with this [EXTERNAL] email!

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

В списке pgsql-admin по дате отправления:

Предыдущее
От: "Godfrin, Philippe E"
Дата:
Сообщение: RE: [EXTERNAL] Re: FDW, connections, master v replica
Следующее
От: "Godfrin, Philippe E"
Дата:
Сообщение: RE: [EXTERNAL] Re: FDW, connections, master v replica