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

From: "Albin, Lloyd P" <lalbin(at)scharp(dot)org>
To: Bernd Helmle <mailings(at)oopsware(dot)de>, "pgsql-bugs(at)postgresql(dot)org" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.
Date: 2013-07-10 22:39:16
Message-ID: AE011E7AE62117479360E1E2BD341F4E0933D8@adama.fhcrc.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

I realized that postgres_fdw is caching the connection, but when you have existing items that use the same USER MAPPING and do not cache it such as dblink you get inconsistency in implementation and this should be avoided.

Lloyd

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

--On 9. Juli 2013 22:05:20 +0000 lalbin(at)fhcrc(dot)org wrote:

> I have found that if you change the password in the USER MAPPING, that
> postgres_fdw will not use it unless the current password fails or you
> close and re-open your postgres connection. I found this while testing
> to see if the USER MAPPING's supports MD5 passwords and they appeared
> to until the next day when I found that they no longer worked because
> 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 connection within your local session, reusing it for any subsequent foreign table 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
against HEAD.

--
Thanks

Bernd

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message digoal 2013-07-11 03:26:17 BUG #8294: new timeline 6 forked off current dat abase system timeline 5 before current recovery point 0/100000
Previous Message Bernd Helmle 2013-07-10 22:33:57 Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.