Re: [Proposal] Add foreign-server health checks infrastructure

From: Fujii Masao <masao(dot)fujii(at)oss(dot)nttdata(dot)com>
To: "Hayato Kuroda (Fujitsu)" <kuroda(dot)hayato(at)fujitsu(dot)com>
Cc: 'Katsuragi Yuta' <katsuragiy(at)oss(dot)nttdata(dot)com>, 'vignesh C' <vignesh21(at)gmail(dot)com>, 'Ted Yu' <yuzhihong(at)gmail(dot)com>, 'Tom Lane' <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "'pgsql-hackers(at)lists(dot)postgresql(dot)org'" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, 'Önder Kalacı' <onderkalaci(at)gmail(dot)com>, "'Shinya11(dot)Kato(at)oss(dot)nttdata(dot)com'" <Shinya11(dot)Kato(at)oss(dot)nttdata(dot)com>, 'Kyotaro Horiguchi' <horikyota(dot)ntt(at)gmail(dot)com>, 'Shubham Khanna' <khannashubham1197(at)gmail(dot)com>
Subject: Re: [Proposal] Add foreign-server health checks infrastructure
Date: 2024-09-17 05:39:19
Message-ID: 05651293-d783-4a0d-8756-9ffc5b3d9279@oss.nttdata.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On 2024/08/08 11:38, Hayato Kuroda (Fujitsu) wrote:
> Dear Fujii-san,
>
> Thanks for reviewing! PSA new version.

Thanks for updating the patch! LGTM.

I made a couple of small adjustments and attached the updated version.
If that's ok, I'll go ahead and commit it.

+ Name of the local user mapped to the foreign server of this
+ connection, or "public" if a public mapping is used. If the user

I enclosed "public" with <literal> tag, i.e., <literal>public</literal>.

> I did not done that be cause either of server_name or user_name is NULL and
> it might be strange. But yes, the example should have more information.
> Based on that, I added a tuple so that the example has below. Thought?
>
> loopback1 - user is "postgres", valid
> loopback2 - user is "public", valid
> loopback3 - user is NULL, invalid

LGTM.
Also I added the following to the example for clarity:

postgres=# SELECT * FROM postgres_fdw_get_connections(true);

Regards,

--
Fujii Masao
Advanced Computing Technology Center
Research and Development Headquarters
NTT DATA CORPORATION

Attachment Content-Type Size
v4-0001-postgres_fdw-Extend-postgres_fdw_get_connections-.patch text/plain 10.5 KB

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2024-09-17 05:42:35 Re: Regression tests fail with tzdata 2024b
Previous Message Sven Klemm 2024-09-17 05:38:15 Re: Regression tests fail with tzdata 2024b