pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
mild modification to pg_dump
14+ messages / 7 participants
[nested] [flat]

* mild modification to pg_dump
@ 2017-11-17 12:51 marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  0 siblings, 1 reply; 14+ messages in thread

From: marcelo @ 2017-11-17 12:51 UTC (permalink / raw)
  To: pgsql-general

I would need to do a mild change to pg_dump, working against a 9.4 
server on linux.
Which source tree do I need? Have gcc 4.9.2 in my Lubuntu installation.
TIA



-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
@ 2017-11-17 13:49 ` Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  0 siblings, 1 reply; 14+ messages in thread

From: Scott Mead @ 2017-11-17 13:49 UTC (permalink / raw)
  To: marcelo <marcelo.nicolet@gmail.com>; +Cc: pgsql-general

On Fri, Nov 17, 2017 at 7:51 AM, marcelo <marcelo.nicolet@gmail.com> wrote:

> I would need to do a mild change to pg_dump, working against a 9.4 server
> on linux.
> Which source tree do I need? Have gcc 4.9.2 in my Lubuntu installation.
> TIA


What exactly do you need to change?  Most likely, there is a quick and easy
fix for whatever you're doing without modifying pg_dump itself.

That being said, if you really want to modify the source, download the
source tarball: https://www.postgresql.org/ftp/source/


>
>
>
>
> --
> Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



-- 
--
Scott Mead
Sr. Architect
*OpenSCG <http://openscg.com>*
http://openscg.com

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
@ 2017-11-17 20:19   ` marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:23     ` Re: mild modification to pg_dump John R Pierce <pierce@hogranch.com>
  2017-11-17 20:49     ` Re: mild modification to pg_dump Ron Johnson <ron.l.johnson@cox.net>
  0 siblings, 2 replies; 14+ messages in thread

From: marcelo @ 2017-11-17 20:19 UTC (permalink / raw)
  To: Scott Mead <scottm@openscg.com>; +Cc: pgsql-general

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).
Thank you, Scott.

On 17/11/17 10:49, Scott Mead wrote:
>
>
> On Fri, Nov 17, 2017 at 7:51 AM, marcelo <marcelo.nicolet@gmail.com 
> <mailto:marcelo.nicolet@gmail.com>> wrote:
>
>     I would need to do a mild change to pg_dump, working against a 9.4
>     server on linux.
>     Which source tree do I need? Have gcc 4.9.2 in my Lubuntu
>     installation.
>     TIA
>
>
> What exactly do you need to change?  Most likely, there is a quick and 
> easy fix for whatever you're doing without modifying pg_dump itself.
>
> That being said, if you really want to modify the source, download the 
> source tarball: https://www.postgresql.org/ftp/source/
>
>
>
>
>
>     -- 
>     Sent via pgsql-general mailing list (pgsql-general@postgresql.org
>     <mailto:pgsql-general@postgresql.org>)
>     To make changes to your subscription:
>     http://www.postgresql.org/mailpref/pgsql-general
>     <http://www.postgresql.org/mailpref/pgsql-general;
>
>
>
>
> -- 
> --
> Scott Mead
> Sr. Architect
> /OpenSCG <http://openscg.com>/
> http://openscg.com

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
@ 2017-11-17 20:23     ` John R Pierce <pierce@hogranch.com>
  2017-11-17 21:06       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 21:19       ` Re: mild modification to pg_dump Ron Johnson <ron.l.johnson@cox.net>
  1 sibling, 2 replies; 14+ messages in thread

From: John R Pierce @ 2017-11-17 20:23 UTC (permalink / raw)
  To: pgsql-general

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



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:23     ` Re: mild modification to pg_dump John R Pierce <pierce@hogranch.com>
@ 2017-11-17 21:06       ` marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 21:16         ` Re: mild modification to pg_dump Vick Khera <vivek@khera.org>
  2017-11-17 21:31         ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  1 sibling, 2 replies; 14+ messages in thread

From: marcelo @ 2017-11-17 21:06 UTC (permalink / raw)
  To: pgsql-general

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@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:23     ` Re: mild modification to pg_dump John R Pierce <pierce@hogranch.com>
  2017-11-17 21:06       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
@ 2017-11-17 21:16         ` Vick Khera <vivek@khera.org>
  1 sibling, 0 replies; 14+ messages in thread

From: Vick Khera @ 2017-11-17 21:16 UTC (permalink / raw)
  To: 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.nicolet@gmail.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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:23     ` Re: mild modification to pg_dump John R Pierce <pierce@hogranch.com>
  2017-11-17 21:06       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
@ 2017-11-17 21:31         ` Scott Mead <scottm@openscg.com>
  2017-11-17 21:56           ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  1 sibling, 1 reply; 14+ messages in thread

From: Scott Mead @ 2017-11-17 21:31 UTC (permalink / raw)
  To: marcelo <marcelo.nicolet@gmail.com>; +Cc: pgsql-general

On Fri, Nov 17, 2017 at 4:06 PM, marcelo <marcelo.nicolet@gmail.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.


pg_dump can use an environment variable "PGPASSWORD" upon execution
(actually, all libpq programs can).  You could have a wrapper that sets the
environment variable and then executes pg_dump, this would get you around
that prompt.  Similarly, you could use the .pgpass file.

https://www.postgresql.org/docs/9.5/static/libpq-envars.html
https://www.postgresql.org/docs/9.5/static/libpq-pgpass.html

--Scott



>
>
> 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@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-general
>



-- 
--
Scott Mead
Sr. Architect
*OpenSCG <http://openscg.com>*
http://openscg.com

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:23     ` Re: mild modification to pg_dump John R Pierce <pierce@hogranch.com>
  2017-11-17 21:06       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 21:31         ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
@ 2017-11-17 21:56           ` marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 23:38             ` Re: mild modification to pg_dump Andres Freund <andres@anarazel.de>
  0 siblings, 1 reply; 14+ messages in thread

From: marcelo @ 2017-11-17 21:56 UTC (permalink / raw)
  To: Scott Mead <scottm@openscg.com>; +Cc: pgsql-general

Thank you, Scott.
That's happening me because incomplete docs reading.
Truly, I'm catched in a very big app, so I have no time to read all the 
docs.


On 17/11/17 18:31, Scott Mead wrote:
>
> On Fri, Nov 17, 2017 at 4:06 PM, marcelo <marcelo.nicolet@gmail.com 
> <mailto:marcelo.nicolet@gmail.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.
>
>
> pg_dump can use an environment variable "PGPASSWORD" upon execution 
> (actually, all libpq programs can).  You could have a wrapper that 
> sets the environment variable and then executes pg_dump, this would 
> get you around that prompt.  Similarly, you could use the .pgpass file.
>
> https://www.postgresql.org/docs/9.5/static/libpq-envars.html
> https://www.postgresql.org/docs/9.5/static/libpq-pgpass.html
>
> --Scott
>
>
>
>     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@postgresql.org
>     <mailto:pgsql-general@postgresql.org>)
>     To make changes to your subscription:
>     http://www.postgresql.org/mailpref/pgsql-general
>     <http://www.postgresql.org/mailpref/pgsql-general;
>
>
>
>
> -- 
> --
> Scott Mead
> Sr. Architect
> /OpenSCG <http://openscg.com>/
> http://openscg.com

^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:23     ` Re: mild modification to pg_dump John R Pierce <pierce@hogranch.com>
  2017-11-17 21:06       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 21:31         ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 21:56           ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
@ 2017-11-17 23:38             ` Andres Freund <andres@anarazel.de>
  0 siblings, 0 replies; 14+ messages in thread

From: Andres Freund @ 2017-11-17 23:38 UTC (permalink / raw)
  To: marcelo <marcelo.nicolet@gmail.com>; +Cc: Scott Mead <scottm@openscg.com>; pgsql-general

On 2017-11-17 18:56:45 -0300, marcelo wrote:
> Truly, I'm catched in a very big app, so I have no time to read all
> the docs.

People on this list also have jobs.

- Andres


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:23     ` Re: mild modification to pg_dump John R Pierce <pierce@hogranch.com>
@ 2017-11-17 21:19       ` Ron Johnson <ron.l.johnson@cox.net>
  1 sibling, 0 replies; 14+ messages in thread

From: Ron Johnson @ 2017-11-17 21:19 UTC (permalink / raw)
  To: pgsql-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



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
@ 2017-11-17 20:49     ` Ron Johnson <ron.l.johnson@cox.net>
  2017-11-17 21:19       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 21:58       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  1 sibling, 2 replies; 14+ messages in thread

From: Ron Johnson @ 2017-11-17 20:49 UTC (permalink / raw)
  To: pgsql-general

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?


-- 
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



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:49     ` Re: mild modification to pg_dump Ron Johnson <ron.l.johnson@cox.net>
@ 2017-11-17 21:19       ` marcelo <marcelo.nicolet@gmail.com>
  1 sibling, 0 replies; 14+ messages in thread

From: marcelo @ 2017-11-17 21:19 UTC (permalink / raw)
  To: pgsql-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



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:49     ` Re: mild modification to pg_dump Ron Johnson <ron.l.johnson@cox.net>
@ 2017-11-17 21:58       ` marcelo <marcelo.nicolet@gmail.com>
  2017-11-18 17:50         ` Re: mild modification to pg_dump Matt Zagrabelny <mzagrabe@d.umn.edu>
  1 sibling, 1 reply; 14+ messages in thread

From: marcelo @ 2017-11-17 21:58 UTC (permalink / raw)
  To: pgsql-general

Again: knowing of .pgpass (thank you Scott) this is what I will do.

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



^ permalink  raw  reply  [nested|flat] 14+ messages in thread

* Re: mild modification to pg_dump
  2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 13:49 ` Re: mild modification to pg_dump Scott Mead <scottm@openscg.com>
  2017-11-17 20:19   ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
  2017-11-17 20:49     ` Re: mild modification to pg_dump Ron Johnson <ron.l.johnson@cox.net>
  2017-11-17 21:58       ` Re: mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
@ 2017-11-18 17:50         ` Matt Zagrabelny <mzagrabe@d.umn.edu>
  0 siblings, 0 replies; 14+ messages in thread

From: Matt Zagrabelny @ 2017-11-18 17:50 UTC (permalink / raw)
  To: marcelo <marcelo.nicolet@gmail.com>; +Cc: pgsql-general

On Fri, Nov 17, 2017 at 3:58 PM, marcelo <marcelo.nicolet@gmail.com> wrote:

> Again: knowing of .pgpass (thank you Scott) this is what I will do.
>
>
Just in case you might not know. The perms of the .pgpass file need to not
have group or all write access. For instance:

chmod 0600 .pgpass

-m

^ permalink  raw  reply  [nested|flat] 14+ messages in thread


end of thread, other threads:[~2017-11-18 17:50 UTC | newest]

Thread overview: 14+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-11-17 12:51 mild modification to pg_dump marcelo <marcelo.nicolet@gmail.com>
2017-11-17 13:49 ` Scott Mead <scottm@openscg.com>
2017-11-17 20:19   ` marcelo <marcelo.nicolet@gmail.com>
2017-11-17 20:23     ` John R Pierce <pierce@hogranch.com>
2017-11-17 21:06       ` marcelo <marcelo.nicolet@gmail.com>
2017-11-17 21:16         ` Vick Khera <vivek@khera.org>
2017-11-17 21:31         ` Scott Mead <scottm@openscg.com>
2017-11-17 21:56           ` marcelo <marcelo.nicolet@gmail.com>
2017-11-17 23:38             ` Andres Freund <andres@anarazel.de>
2017-11-17 21:19       ` Ron Johnson <ron.l.johnson@cox.net>
2017-11-17 20:49     ` Ron Johnson <ron.l.johnson@cox.net>
2017-11-17 21:19       ` marcelo <marcelo.nicolet@gmail.com>
2017-11-17 21:58       ` marcelo <marcelo.nicolet@gmail.com>
2017-11-18 17:50         ` Matt Zagrabelny <mzagrabe@d.umn.edu>

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