Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFo5b-0002Hd-P4 for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 21:22:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eFo5b-0005pz-CU for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 21:22:19 +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_2) (envelope-from ) id 1eFo31-0006CD-IO for pgsql-general@postgresql.org; Fri, 17 Nov 2017 21:19:39 +0000 Received: from eastrmfepo102.cox.net ([68.230.241.214]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eFo2y-0005jW-2Q for pgsql-general@postgresql.org; Fri, 17 Nov 2017 21:19:38 +0000 Received: from eastrmimpo110.cox.net ([68.230.241.223]) by eastrmfepo102.cox.net (InterMail vM.8.01.05.28 201-2260-151-171-20160122) with ESMTP id <20171117211935.QJOW14605.eastrmfepo102.cox.net@eastrmimpo110.cox.net> for ; Fri, 17 Nov 2017 16:19:35 -0500 Received: from [192.168.1.10] ([70.171.109.83]) by eastrmimpo110.cox.net with cox id b9Ka1w00q1o04Vy019KaxY; Fri, 17 Nov 2017 16:19:34 -0500 X-CT-Class: Clean X-CT-Score: 0.00 X-CT-RefID: str=0001.0A020206.5A0F5266.0231,ss=1,re=0.000,recu=0.000,reip=0.000,cl=1,cld=1,fgs=0 X-CT-Spam: 0 X-Authority-Analysis: v=2.2 cv=ENR26xRC c=1 sm=1 tr=0 a=uCHdjGDeLqaieW9t8IbZ6A==:117 a=uCHdjGDeLqaieW9t8IbZ6A==:17 a=IkcTkHD0fZMA:10 a=x7bEGLp0ZPQA:10 a=T11QR6bd6vIA:10 a=epTmVMiNAAAA:8 a=cBxysOPFIE84Z8kcn3AA:9 a=QEXdDO2ut3YA:10 a=Kzge9FzZzjQA:10 a=4P-QLYzLPcMA:10 a=ndEWmUVY6Yapc0oHF_P4:22 X-CM-Score: 0.00 Authentication-Results: cox.net; auth=pass (PLAIN) smtp.auth=ron.l.johnson@cox.net Subject: Re: mild modification to pg_dump To: pgsql-general@postgresql.org References: <83ed30b6-a397-9072-67e5-0bde83ce28b7@gmail.com> <023dc0d6-8fa3-7217-cf5c-0e3131c3b8c2@gmail.com> From: Ron Johnson Message-ID: <3f43162a-7d47-5ac6-de86-40f22cb06eac@cox.net> Date: Fri, 17 Nov 2017 15:19:34 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-general Precedence: bulk Sender: pgsql-general-owner@postgresql.org What about the pgpass file? https://www.postgresql.org/docs/9.2/static/libpq-pgpass.html On 11/17/2017 03:06 PM, marcelo wrote: > I need to "emulate" the pg_dump code because the password prompt. Years > ago I write a program (for the QnX environment) that catched some prompt > and emulates the standard input. I don't like to do that again. > > On 17/11/17 17:23, John R Pierce wrote: >> On 11/17/2017 12:19 PM, marcelo wrote: >>> Sorry, I was not exact. >>> I don't need nor like to change pg_dump. Rather, based on pg_dump code, >>> I need to develop a daemon which can receive a TCP message (from a >>> privileged app) containing some elements: the database to dump, the user >>> under which do that, and his password. (My apps are using that same >>> data, of course, encripted to the common users). >> >> >> I would just fork pg_dump to do the actual dump rather than try and >> incorporate its source code into your app. >> > -- World Peace Through Nuclear Pacification -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general