pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bernd Helmle <mailings@oopsware.de>
To: lalbin@fhcrc.org
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.
Date: Thu, 11 Jul 2013 00:33:57 +0200
Message-ID: <01D9AE3B275492A46A0F06E3@localhost> (raw)
In-Reply-To: <E1Uwg2C-0008Dq-W2@wrigleys.postgresql.org>
References: <E1Uwg2C-0008Dq-W2@wrigleys.postgresql.org>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>



--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
> 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

-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs

Attachments:

user_mapping_doc.patch (application/octet-stream, 1.0K) download diff --git a/doc/src/sgml/ref/alter_user_mapping.sgml b/doc/src/sgml/ref/alter_user_mapping.sgml new file mode 100644 index 3245f83..dce5ba4 *** a/doc/src/sgml/ref/alter_user_mapping.sgml --- b/doc/src/sgml/ref/alter_user_mapping.sgml *************** ALTER USER MAPPING FOR { <replaceable cl *** 89,97 **** <title>Examples</title> <para> Change the password for user mapping <literal>bob</>, server<literal> foo</>: <programlisting> ! ALTER USER MAPPING FOR bob SERVER foo OPTIONS (user 'bob', password 'public'); </programlisting></para> </refsect1> --- 89,103 ---- <title>Examples</title> <para> + Add a password for user mapping <literal>bob</>, server<literal> foo</>: + <programlisting> + ALTER USER MAPPING FOR bob SERVER foo OPTIONS (ADD password 'public'); + </programlisting></para> + + <para> Change the password for user mapping <literal>bob</>, server<literal> foo</>: <programlisting> ! ALTER USER MAPPING FOR bob SERVER foo OPTIONS (SET password 'public'); </programlisting></para> </refsect1>

view thread (3+ messages)  latest in thread

Message-ID: <01D9AE3B275492A46A0F06E3@localhost>
Permalink:  ../01D9AE3B275492A46A0F06E3@localhost/
Also on:    postgresql.org/message-id/01D9AE3B275492A46A0F06E3@localhost

 ·  · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: mailings@oopsware.de, lalbin@fhcrc.org
  Subject: Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change.
  In-Reply-To: <01D9AE3B275492A46A0F06E3@localhost>
  References: <E1Uwg2C-0008Dq-W2@wrigleys.postgresql.org> <01D9AE3B275492A46A0F06E3@localhost>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox