Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eFo57-0002G1-2F for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 21:21:49 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1eFo56-0004xi-K8 for pgsql-general@arkaria.postgresql.org; Fri, 17 Nov 2017 21:21:48 +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 1eFo2W-0004ak-Tt for pgsql-general@postgresql.org; Fri, 17 Nov 2017 21:19:09 +0000 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1eFo2T-0005iz-Lj for pgsql-general@postgresql.org; Fri, 17 Nov 2017 21:19:07 +0000 Received: by mail-qk0-x22f.google.com with SMTP id n3so1024963qkn.11 for ; Fri, 17 Nov 2017 13:19:05 -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=XmfiFi+WDOn0+5Uzw7Op5dfKfgL0/2u82ZTP8NUO9Js=; b=bfggeRDm3ZsFR0JGBaGMsnG/M8N15q+XfL5rnBMjYC5jECfv0DDzg7P478gu5yuNB4 2pExPqaLmSOTxW5LqyRE5eO7tcRRuaOYWLPf0ffLmwbjMBEeGD7sq/iEk+KVjN5+3r7+ 3gTepFGyjr+PJ+luS7hh18efkF38HaTlXGh3w5hJKKSLEpPMH8xj2pBX1NrRMD8DkX+v KdsSSgZFbQAVdQLABGZSG5AdN0H9Rqli05F8ZFWt/k8nH9VRcFhDhe4Q6Efw4XwyIVgo 9IFDpCEmMnBhAUycZ1mIpskz6Qc8Rh+TkrauSD4PtHR1gdUNJXjYQxMAO5yohRBEy36R HKYw== 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=XmfiFi+WDOn0+5Uzw7Op5dfKfgL0/2u82ZTP8NUO9Js=; b=bRUjcotOgoJ73WIUmiw/ZiCTy6mufUdG+TaGIxZb3kLlAwA8lyWtMVrUVlpNWqjf7L ajimBZsoBwf4U+KfTp9h1wyWO1iqieBo5fPVZ2J1bWxYlwlVG2Wvaebb1UMjIrfZoiv0 bIWN8Muvgi7Gt+4bq+0iyTo4h5OrG/fG6jH0bZNEoJ2FK8nNjJ6u66s4GB7446bb8hlI lFNApxXT5hVjoatmAcJFXk+Kp1LLvmPu799L+MyyBbOa75YF/sYNxwEoCHcsllniUxC2 HnKYaHgmaR8RuxBwcMGKgSsY0YxWueL3idDDhT/RbAfZr9dcryJQHqxFGoxq2jsPFupW ZU1A== X-Gm-Message-State: AJaThX50RHwR7CvlVCGhzfokqrCthHErjH+kFKMLIkvQs3UCZ5EDQJth 6E4nx6ghz77axCcDM50JApJVCsCF X-Google-Smtp-Source: AGs4zMY68CK02nN90JHVB24muMBO5Xp2/c22roXNVrFZ9DZ+mmPyUbkXMeAnnBwevTmW26NWnWL7tQ== X-Received: by 10.55.179.198 with SMTP id c189mr10773128qkf.211.1510953544243; Fri, 17 Nov 2017 13:19:04 -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 s9sm3164172qts.42.2017.11.17.13.19.03 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 17 Nov 2017 13:19:03 -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> <5ba7371f-9616-0a34-6315-5a03b95f609b@cox.net> From: marcelo Message-ID: <7fba43ca-05c6-d8f8-4034-34ae520f3180@gmail.com> Date: Fri, 17 Nov 2017 18:19:01 -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: <5ba7371f-9616-0a34-6315-5a03b95f609b@cox.net> 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 will give expect a try. But the source code embedded in my daemon. On 17/11/17 17:49, Ron Johnson wrote: > On 11/17/2017 02:23 PM, 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. >> > > Specifically, do you mean to write a simple daemon which forks pg_dump > at the appropriate time? > > -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general