Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFnqx-0001EX-3P for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 21:07:11 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eFnqw-0004X1-Bq for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 21:07:10 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1eFnqv-0004Wr-KT for pgsql-general@postgresql.org; Fri, 17 Nov 2017 21:07:09 +0000 Received: from mail-qk0-x22c.google.com ([2607:f8b0:400d:c09::22c]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eFnqn-0002JM-Ce for pgsql-general@postgresql.org; Fri, 17 Nov 2017 21:07:08 +0000 Received: by mail-qk0-x22c.google.com with SMTP id o6so989991qkh.3 for ; Fri, 17 Nov 2017 13:07:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=gP9UZVmHwc1KgM0R2WXYZN6FYBYVUKKBtJWNhWI8ocI=; b=Bw6NqkalIXLVt93NENrKFvXs2pm2xybE5D2qHa0eVv5T5uGT/NvcgTjTVGdjozwlAB ev60DTczmsYA7ekI5oIsef6P+etvNIDYeXM5kOH9pDI84xZXeDzkH7QVeeC2cOA9T3Bd kTeb8m60lUZQzFuQu2NwbgD6UH9OQv3j+pp2CmyKJFU1byJO3LfySxlqZ5jfSAMVSEGy Q08HtNR5RFzadDe94XPPi+MW+1BsVuUtW4wVZMHSQPDPAQ9/EuRZMNWHa/qUjT49hRQ8 EJX3VejVzZEsK9H0GkdBYAWy3IYw91SWJg/gSdFYghR1fwjufzOlnsKPge4/J5P8hZjN Gu4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=gP9UZVmHwc1KgM0R2WXYZN6FYBYVUKKBtJWNhWI8ocI=; b=kk6joosqhISuJK2swMN/TV+H5YCxVaxphFZXQQK1i57ADR4OQjWKaZwduhyl5vTt4b QKogq/BflyVZgK2aP7Lq28U9oW1Y2iAk8JwqzWSn2+s6x7f0BnWkosGwJWFPCQ0lvVRV 3+tVq8i+dpcX1b6/c4Kk55J7AcobLLGPjP3qhTkVdFoWsDQR83TvaxWVlADl396rw3ED t/nCMm5gR9tXYDm1OojhKOp9cYbttLU+RkFHneE8ywLUkkhVHWE7L1gpPPPsfBwhe1Pg iwS0zK992PewFvU0FDii487eUmva02z4RLmQL1BsOTdX6FkZeHua0dnDVFKjz+Rmf2m+ OTEA== X-Gm-Message-State: AJaThX6N915qogvB7UzeInfLO1uNYT/B3yvP7hyG+Fafwnd6y27J4665 ZxJgk6JFIAlkvKwGw8DkUsYWbcIQ X-Google-Smtp-Source: AGs4zMad50//6SZMclru2R0riHkkkHf70tZ28PmjsbAC3zG6Hja0oBx1u9i/Mw3lM9gbahwYV6U21w== X-Received: by 10.55.42.129 with SMTP id q1mr10753727qkq.3.1510952819113; Fri, 17 Nov 2017 13:06:59 -0800 (PST) Received: from [192.168.1.240] (host145.190-229-78.telecom.net.ar. [190.229.78.145]) by smtp.gmail.com with ESMTPSA id x52sm340797qta.26.2017.11.17.13.06.57 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 13:06:58 -0800 (PST) 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: marcelo Message-ID: <214e4cff-f625-1bb1-4e26-942b07877bcc@gmail.com> Date: Fri, 17 Nov 2017 18:06:56 -0300 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 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. > > -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general