Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux2xi-0001X9-U1 for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2013 22:34:15 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Ux2xi-0004Bg-AQ for pgsql-bugs@arkaria.postgresql.org; Wed, 10 Jul 2013 22:34:14 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux2xf-00047I-M1 for pgsql-bugs@postgresql.org; Wed, 10 Jul 2013 22:34:11 +0000 Received: from dd2030.kasserver.com ([85.13.128.37]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Ux2xY-0001As-3f for pgsql-bugs@postgresql.org; Wed, 10 Jul 2013 22:34:11 +0000 Received: from [192.168.1.3] (dslb-084-062-046-243.pools.arcor-ip.net [84.62.46.243]) by dd2030.kasserver.com (Postfix) with ESMTPSA id EF7A6E0ED5; Thu, 11 Jul 2013 00:33:59 +0200 (CEST) Date: Thu, 11 Jul 2013 00:33:57 +0200 From: Bernd Helmle To: lalbin@fhcrc.org, pgsql-bugs@postgresql.org Subject: Re: BUG #8291: postgres_fdw does not re-read USER MAPING after change. Message-ID: <01D9AE3B275492A46A0F06E3@localhost> In-Reply-To: References: X-Mailer: Mulberry/4.1.0a3 (Mac OS X) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="==========05416CD00E8075357904==========" X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org --==========05416CD00E8075357904========== Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline; size=885 --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 --==========05416CD00E8075357904========== Content-Type: application/octet-stream; name="user_mapping_doc.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="user_mapping_doc.patch"; size=1066 ZGlmZiAtLWdpdCBhL2RvYy9zcmMvc2dtbC9yZWYvYWx0ZXJfdXNlcl9tYXBw aW5nLnNnbWwgYi9kb2Mvc3JjL3NnbWwvcmVmL2FsdGVyX3VzZXJfbWFwcGlu Zy5zZ21sCm5ldyBmaWxlIG1vZGUgMTAwNjQ0CmluZGV4IDMyNDVmODMuLmRj ZTViYTQKKioqIGEvZG9jL3NyYy9zZ21sL3JlZi9hbHRlcl91c2VyX21hcHBp bmcuc2dtbAotLS0gYi9kb2Mvc3JjL3NnbWwvcmVmL2FsdGVyX3VzZXJfbWFw cGluZy5zZ21sCioqKioqKioqKioqKioqKiBBTFRFUiBVU0VSIE1BUFBJTkcg Rk9SIHsgPHJlcGxhY2VhYmxlIGNsCioqKiA4OSw5NyAqKioqCiAgICA8dGl0 bGU+RXhhbXBsZXM8L3RpdGxlPgogIAogICAgPHBhcmE+CiAgICAgQ2hhbmdl IHRoZSBwYXNzd29yZCBmb3IgdXNlciBtYXBwaW5nIDxsaXRlcmFsPmJvYjwv Piwgc2VydmVyPGxpdGVyYWw+IGZvbzwvPjoKICA8cHJvZ3JhbWxpc3Rpbmc+ CiEgQUxURVIgVVNFUiBNQVBQSU5HIEZPUiBib2IgU0VSVkVSIGZvbyBPUFRJ T05TICh1c2VyICdib2InLCBwYXNzd29yZCAncHVibGljJyk7CiAgPC9wcm9n cmFtbGlzdGluZz48L3BhcmE+CiAgCiAgIDwvcmVmc2VjdDE+Ci0tLSA4OSwx MDMgLS0tLQogICAgPHRpdGxlPkV4YW1wbGVzPC90aXRsZT4KICAKICAgIDxw YXJhPgorICAgIEFkZCBhIHBhc3N3b3JkIGZvciB1c2VyIG1hcHBpbmcgPGxp dGVyYWw+Ym9iPC8+LCBzZXJ2ZXI8bGl0ZXJhbD4gZm9vPC8+OgorIDxwcm9n cmFtbGlzdGluZz4KKyBBTFRFUiBVU0VSIE1BUFBJTkcgRk9SIGJvYiBTRVJW RVIgZm9vIE9QVElPTlMgKEFERCBwYXNzd29yZCAncHVibGljJyk7CisgPC9w cm9ncmFtbGlzdGluZz48L3BhcmE+CisgCisgICA8cGFyYT4KICAgICBDaGFu Z2UgdGhlIHBhc3N3b3JkIGZvciB1c2VyIG1hcHBpbmcgPGxpdGVyYWw+Ym9i PC8+LCBzZXJ2ZXI8bGl0ZXJhbD4gZm9vPC8+OgogIDxwcm9ncmFtbGlzdGlu Zz4KISBBTFRFUiBVU0VSIE1BUFBJTkcgRk9SIGJvYiBTRVJWRVIgZm9vIE9Q VElPTlMgKFNFVCBwYXNzd29yZCAncHVibGljJyk7CiAgPC9wcm9ncmFtbGlz dGluZz48L3BhcmE+CiAgCiAgIDwvcmVmc2VjdDE+Cg== --==========05416CD00E8075357904========== Content-Type: text/plain Content-Disposition: inline Content-Transfer-Encoding: 8bit MIME-Version: 1.0 -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs --==========05416CD00E8075357904==========--