pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Ron Johnson <ron.l.johnson@cox.net>
To: pgsql-general@postgresql.org
Subject: Re: mild modification to pg_dump
Date: Fri, 17 Nov 2017 15:19:34 -0600
Message-ID: <3f43162a-7d47-5ac6-de86-40f22cb06eac@cox.net> (raw)
In-Reply-To: <b99c1w05F1DF5NZ0199eej>
References: <83ed30b6-a397-9072-67e5-0bde83ce28b7@gmail.com>
	<CAKq0gvJ9uR9Yid=RaGXawHxYRF_JfRZ96Q9Hevk5gcp+dKH+jw@mail.gmail.com>
	<023dc0d6-8fa3-7217-cf5c-0e3131c3b8c2@gmail.com>
	<d9a6f716-405d-3943-1071-716fbc1fdfc4@hogranch.com>
	<b99c1w05F1DF5NZ0199eej>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-general>


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



view thread (14+ messages)  latest in thread

Message-ID: <3f43162a-7d47-5ac6-de86-40f22cb06eac@cox.net>
Permalink:  ../3f43162a-7d47-5ac6-de86-40f22cb06eac@cox.net/
Also on:    postgresql.org/message-id/3f43162a-7d47-5ac6-de86-40f22cb06eac@cox.net

 · 

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: ron.l.johnson@cox.net
  Subject: Re: mild modification to pg_dump
  In-Reply-To: <3f43162a-7d47-5ac6-de86-40f22cb06eac@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> <d9a6f716-405d-3943-1071-716fbc1fdfc4@hogranch.com> <b99c1w05F1DF5NZ0199eej> <3f43162a-7d47-5ac6-de86-40f22cb06eac@cox.net>

* 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