Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wly85-0007OZ-M2 for pgsql-bugs@arkaria.postgresql.org; Sun, 18 May 2014 10:15:42 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Wly83-0007Xg-T4 for pgsql-bugs@arkaria.postgresql.org; Sun, 18 May 2014 10:15:39 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wly81-0007XV-Od for pgsql-bugs@postgresql.org; Sun, 18 May 2014 10:15:37 +0000 Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Wly7y-0005yM-UA for pgsql-bugs@postgresql.org; Sun, 18 May 2014 10:15:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=depesz.com; s=20140207; h=In-Reply-To:Content-Type:MIME-Version:References:Reply-To:Message-ID:Subject:Cc:To:Sender:From:Date; bh=cFyxpln8E9MHhBwHSUy3wwsNAGIn6FrkhqoN1NDPhs8=; b=wu3hdbFcd1QG86xba+gL2xeVAjwB1fKUkgPMT/ibLEZrn+TW9bRXC8x2RGiHqJ+DF+twUdbsm/2SJzEqhOg+MkUqX1q7H8xhS8WhoxcZiJ49Mq2/IU1Z0BrfNaMIgc04; Received: from andy.depesz.com ([88.198.47.100] helo=depesz.com) by depesz.com with esmtpa (Exim 4.82) (envelope-from ) id 1Wly7v-0003kv-1x; Sun, 18 May 2014 12:15:31 +0200 Date: Sun, 18 May 2014 12:15:30 +0200 From: hubert depesz lubaczewski To: derek_ealy@rapid7.com Cc: pgsql-bugs@postgresql.org Subject: Re: BUG #10347: Can't write password to psql or pg_dump Message-ID: <20140518101530.GA13617@depesz.com> Reply-To: depesz@depesz.com References: <20140516203409.16847.6130@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qDbXVdCdHGoSgWSk" Content-Disposition: inline In-Reply-To: <20140516203409.16847.6130@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-Pg-Spam-Score: -2.7 (--) 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 --qDbXVdCdHGoSgWSk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, May 16, 2014 at 08:34:09PM +0000, derek_ealy@rapid7.com wrote: > When exec'ing a command to pg_dump or psql from Java there is no "normal" > way to send the password to the psql process. >=20 > On Linux systems it works as expected because I write the password to the > input stream of the process running psql. Normal way of providing password is either to use PGPASSWORD environment variable, as shown here: http://www.postgresql.org/docs/current/interactive/libpq-envars.html or pgpass file, as shown here: http://www.postgresql.org/docs/current/interactive/libpq-pgpass.html depesz --qDbXVdCdHGoSgWSk Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- iQIcBAEBCgAGBQJTeIg6AAoJEH8YKMd1okYDRiAQAM6EIpTTKZif9efw1Q32Gfbm bn5aIK1NB8tmGxFNcz0dBxuyvvQwvLRcXE66ay33oBQtwWCWT93sdxCppXWtgY2K iwn8qViQKoR2LMyxzyD8lAfWzPkXpO5An22HCL3JRKHfy6PIL639AEVIrWTub4vr bJIXOxax6JAa9G3o4q2ZGJfhskSD/UekYIUU6lFYQkqbH9JCdz2tKSUZzLKObQgA 4y1i1WjLx4TwZ56V8Bc2EgolKJ+v3aK6NfDmPE/MRVNJtvBhHWNnuKk6OuHGv/c8 VBx7OQAhtKLvbvz4mSdx7Ve3vNkwnZbtARndt0tmxq1dyWTFWwSAEXCcbaSDk8hC kQBZF/PTi1Zr6Ft9m4NHGzFojiXNIEWApgcw/GbhKhTGGl/Y21dSOL7uJxSZXrk9 Qj4YeCgtgGhqaFbc4JKPjjKXzXTrmdvmZ93xVMv0oMmleCyZAZIlELGC1otQXYEh 0lQKhpoNMLJnvlBXDl3dEzngiipQtHjukNAU2M74+QbZTgSqNYbBrNqDTjTXDxFB 5h4LWSXSHEB8PS6pnOkG/6ACTjiJAq0ZTl9ARa2KtmQpyuq3RRoh6+5F+j/A+d0s vDpV+Ec/GyzBwKJJIuDv6vzWkKtr1J2alPvYlp1dHxq+DOSi5wCk/cGTQzvtARgQ 3COnIK1xexKq86sMqnKn =UQIG -----END PGP SIGNATURE----- --qDbXVdCdHGoSgWSk--