pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: marcelo <marcelo.nicolet@gmail.com>
To: pgsql-general@postgresql.org
Subject: Re: mild modification to pg_dump
Date: Fri, 17 Nov 2017 18:19:01 -0300
Message-ID: <7fba43ca-05c6-d8f8-4034-34ae520f3180@gmail.com> (raw)
In-Reply-To: <5ba7371f-9616-0a34-6315-5a03b95f609b@cox.net>
References: <83ed30b6-a397-9072-67e5-0bde83ce28b7@gmail.com>
	<CAKq0gvJ9uR9Yid=RaGXawHxYRF_JfRZ96Q9Hevk5gcp+dKH+jw@mail.gmail.com>
	<023dc0d6-8fa3-7217-cf5c-0e3131c3b8c2@gmail.com>
	<b8SY1w03F1DF5NZ018SaWs>
	<5ba7371f-9616-0a34-6315-5a03b95f609b@cox.net>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>

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



view thread (14+ messages)  latest in thread

Message-ID: <7fba43ca-05c6-d8f8-4034-34ae520f3180@gmail.com>
Permalink:  ../7fba43ca-05c6-d8f8-4034-34ae520f3180@gmail.com/
Also on:    postgresql.org/message-id/7fba43ca-05c6-d8f8-4034-34ae520f3180@gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: marcelo.nicolet@gmail.com
  Subject: Re: mild modification to pg_dump
  In-Reply-To: <7fba43ca-05c6-d8f8-4034-34ae520f3180@gmail.com>
  References: <83ed30b6-a397-9072-67e5-0bde83ce28b7@gmail.com> <CAKq0gvJ9uR9Yid=RaGXawHxYRF_JfRZ96Q9Hevk5gcp+dKH+jw@mail.gmail.com> <023dc0d6-8fa3-7217-cf5c-0e3131c3b8c2@gmail.com> <b8SY1w03F1DF5NZ018SaWs> <5ba7371f-9616-0a34-6315-5a03b95f609b@cox.net> <7fba43ca-05c6-d8f8-4034-34ae520f3180@gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox