X-Original-To: pgsql-performance-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id A18279FA5DD for ; Thu, 8 Jun 2006 13:35:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 75913-08-2 for ; Thu, 8 Jun 2006 13:35:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from noel.decibel.org (noel.decibel.org [67.100.216.10]) by postgresql.org (Postfix) with ESMTP id 9A0D09FABE7 for ; Thu, 8 Jun 2006 13:35:03 -0300 (ADT) Received: by noel.decibel.org (Postfix, from userid 1001) id AD23E56475; Thu, 8 Jun 2006 11:35:02 -0500 (CDT) Received: (hashcash-sendmail, from uid 1001); Thu, 8 Jun 2006 11:35:01 -0500 Date: Thu, 8 Jun 2006 11:35:01 -0500 From: "Jim C. Nasby" To: Andreas Pflug Cc: Alvaro Herrera , soni de , pgsql-performance@postgresql.org Subject: Re: Regarding pg_dump utility Message-ID: <20060608163501.GT45331@pervasive.com> References: <9f2e40a90606072309v4c5b2623k8bda2614cd575835@mail.gmail.com> <20060608151657.GL45331@pervasive.com> <20060608162327.GD17421@surnet.cl> <44885158.9020209@pse-consulting.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44885158.9020209@pse-consulting.de> X-Operating-System: FreeBSD 6.0-RELEASE-p4 amd64 X-Distributed: Join the Effort! http://www.distributed.net User-Agent: Mutt/1.5.11 X-Hashcash: 1:20:060608:pgadmin@pse-consulting.de::cdWFXZKAUnZmWzYu:000000000000 0000000000000000000000000VE6 X-Hashcash: 1:20:060608:alvherre@commandprompt.com::Ze3Ja8mmFN7uNsdR:00000000000 00000000000000000000000008Wc X-Hashcash: 1:20:060608:soni.de@gmail.com::g8upgpFksv+EWb5N:00000000000000000000 0000000000000000000000002Ncn X-Hashcash: 1:20:060608:pgsql-performance@postgresql.org::K3UtT5UuiAfeytiW:00000 0000000000000000000000006KW+ X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/94 X-Sequence-Number: 19451 On Thu, Jun 08, 2006 at 06:33:28PM +0200, Andreas Pflug wrote: > Alvaro Herrera wrote: > > > > > > >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. > > pgAdmin currently invokes pg_dump/restore externally with pipes attached > to stdin/out/err, but a library implementation would solve some > headaches (esp. concerning portability) managing background > execution/GUI updates/process control. I'd like a libpgdumprestore > library, with pg_dump/pg_restore being lean wrapper programs. Would a pg_dumpall library also make sense? -- Jim C. Nasby, Sr. Engineering Consultant jnasby@pervasive.com Pervasive Software http://pervasive.com work: 512-231-6117 vcard: http://jim.nasby.net/pervasive.vcf cell: 512-569-9461