Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFnDo-0006oh-5y for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 20:26:44 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eFnDn-0006Gr-Pl for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 20:26:43 +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 1eFnBH-0001pr-Cr for pgsql-general@postgresql.org; Fri, 17 Nov 2017 20:24:07 +0000 Received: from hogranch.com ([75.101.82.47]) by magus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1eFnBD-0001G8-N1 for pgsql-general@postgresql.org; Fri, 17 Nov 2017 20:24:06 +0000 Received: from [192.168.0.2] (porker [192.168.0.2]) by hogranch.com (8.11.6/8.11.6) with ESMTP id vAHKNvN08917 for ; Fri, 17 Nov 2017 12:23:57 -0800 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: John R Pierce Message-ID: Date: Fri, 17 Nov 2017 12:23:52 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <023dc0d6-8fa3-7217-cf5c-0e3131c3b8c2@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-HawgScanner-Information: Please contact the ISP for more information X-HawgScanner: Found to be clean 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 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. -- john r pierce, recycling bits in santa cruz -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general