Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.

Поиск
Список
Период
Сортировка
От Albin, Lloyd P
Тема Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.
Дата
Msg-id AE011E7AE62117479360E1E2BD341F4E0933D8@adama.fhcrc.org
обсуждение исходный текст
Ответ на Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.  (Bernd Helmle <mailings@oopsware.de>)
Список pgsql-bugs
I realized that postgres_fdw is caching the connection, but when you have e=
xisting items that use the same USER MAPPING and do not cache it such as db=
link you get inconsistency in implementation and this should be avoided.

Lloyd

-----Original Message-----
From: Bernd Helmle [mailto:mailings@oopsware.de]=20
Sent: Wednesday, July 10, 2013 3:34 PM
To: Albin, Lloyd P; pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #8291: postgres_fdw does not re-read USER MAPING af=
ter change.



--On 9. Juli 2013 22:05:20 +0000 lalbin@fhcrc.org wrote:

> I have found that if you change the password in the USER MAPPING, that=20
> postgres_fdw will not use it unless the current password fails or you=20
> close and re-open your postgres connection. I found this while testing=20
> to see if the USER MAPPING's supports MD5 passwords and they appeared=20
> to until the next day when I found that they no longer worked because=20
> I had closed and re-opened my connection.
>

Hmm i don't think that's a bug. It's because the postgres_fdw caches the co=
nnection within your local session, reusing it for any subsequent foreign t=
able access.

>
> The second error that I found is in the documentation of ALTER USER
> MAPPING. It incorrectly says how to update a users password.
>
>

It could be misread, i agree. Attached is a small doc patch to address this=
=20
against HEAD.

--=20
Thanks

    Bernd

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

Предыдущее
От: Bernd Helmle
Дата:
Сообщение: Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.
Следующее
От: Alex Hunsaker
Дата:
Сообщение: Re: Unable to handle error in plperl