From: Alvaro Herrera <alvherre@commandprompt.com>
To: Jim C. Nasby <jnasby@pervasive.com>
Cc: soni de <soni.de@gmail.com>
Cc: pgsql-performance@postgresql.org
Subject: Re: Regarding pg_dump utility
Date: Thu, 8 Jun 2006 12:23:27 -0400
Message-ID: <20060608162327.GD17421@surnet.cl> (raw)
In-Reply-To: <20060608151657.GL45331@pervasive.com>
References: <9f2e40a90606072309v4c5b2623k8bda2614cd575835@mail.gmail.com>
<20060608151657.GL45331@pervasive.com>
Jim C. Nasby wrote:
> On Thu, Jun 08, 2006 at 11:39:48AM +0530, soni de wrote:
> > We have to take a backup of database and we know the pg_dump utility of
> > postgresql.
> >
> > But may I know, is there any API for this pg_dump utility so that we can
> > call it from the C program? Or only script support is possible for this.
>
> It probably wouldn't be terribly difficult to put the guts of pg_dump
> into a library that you could interface with via C. I'm not sure if the
> community would accept such a patch; though, I seem to recall other
> people asking for this on occasion.
Personally I think it would be neat. For example the admin-tool guys
would be able to get a dump without invoking an external program.
Second it would really be independent of core releases (other than being
tied to the output format.) pg_dump would be just a simple caller of
such a library, and anyone else would be able to get dumps easily, in
whatever format.
--
Alvaro Herrera http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support
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 using the --to and --cc options:
reply via email
To: pgsql-performance@postgresql.org
Cc: alvherre@commandprompt.com, jnasby@pervasive.com, soni.de@gmail.com
Subject: Re: Regarding pg_dump utility
In-Reply-To: <20060608162327.GD17421@surnet.cl>
* 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