Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Zwzn0-0003c8-HF for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Nov 2015 21:52:18 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1Zwzmz-0005p9-PK for pgsql-bugs@arkaria.postgresql.org; Thu, 12 Nov 2015 21:52:17 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZwzmM-00057r-3H for pgsql-bugs@postgresql.org; Thu, 12 Nov 2015 21:51:38 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1ZwzmG-0003qE-0Y for pgsql-bugs@postgresql.org; Thu, 12 Nov 2015 21:51:36 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id tACLpMmD021798; Thu, 12 Nov 2015 16:51:22 -0500 From: Tom Lane To: Alvaro Herrera cc: Fujii Masao , Michael Paquier , Haribabu Kommi , brown@fastmail.com, "pgsql-bugs@postgresql.org" Subject: Re: BUG #13741: vacuumdb does not accept valid password In-reply-to: <20151112212627.GR614468@alvherre.pgsql> References: <20151104021618.GP6104@alvherre.pgsql> <20151112170303.GN614468@alvherre.pgsql> <15139.1447357263@sss.pgh.pa.us> <20151112212627.GR614468@alvherre.pgsql> Comments: In-reply-to Alvaro Herrera message dated "Thu, 12 Nov 2015 18:26:27 -0300" Date: Thu, 12 Nov 2015 16:51:22 -0500 Message-ID: <21797.1447365082@sss.pgh.pa.us> X-Pg-Spam-Score: -2.3 (--) 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 Alvaro Herrera writes: > Thanks for the input. I decided to push what we had because it's less > invasive in terms of API definition. I dunno, this might be easier for the callers that don't want password re-use, but it seems quite horrid for ones that do. The changes to vacuumdb.c are, frankly, seriously ugly; and they require vacuumdb.c to know a lot more than before about password handling. Other notes are that the strdup() call should surely be pg_strdup(), and the mix of free() and pg_free() is at best unsightly. On the whole I don't think this was ready to push. The place I was thinking we might end up was something like Fujii-san's patch plus a new bool parameter "allow_password_reuse", which could be passed as false in cases where the old behavior seems preferable. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs