From: | Vick Khera <vivek(at)khera(dot)org> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: mild modification to pg_dump |
Date: | 2017-11-17 21:16:37 |
Message-ID: | CALd+dcfG=18Aon+qVdeisppuEr7M0WLAVcPO10HVja+9Skazwg@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
pg_dump is a libpq client, and thus will read the environment for a
variable with the password. no need to emulte any command prompt tty
operations.
On Fri, Nov 17, 2017 at 4:06 PM, marcelo <marcelo(dot)nicolet(at)gmail(dot)com> 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.
>>
>>
>>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>
From | Date | Subject | |
---|---|---|---|
Next Message | marcelo | 2017-11-17 21:19:01 | Re: mild modification to pg_dump |
Previous Message | marcelo | 2017-11-17 21:06:56 | Re: mild modification to pg_dump |