X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 154E6554CD for ; Wed, 2 Mar 2005 08:50:23 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 78568-03 for ; Wed, 2 Mar 2005 08:50:19 +0000 (GMT) Received: from mail.idilis.net (mail.idilis.net [217.156.85.2]) by svr1.postgresql.org (Postfix) with ESMTP id B4D24563D6 for ; Wed, 2 Mar 2005 08:50:17 +0000 (GMT) Received: from [82.76.81.98] (helo=adi) by mail.idilis.net with asmtp id 1D6PYc-0004ib-00; Wed, 02 Mar 2005 10:50:15 +0200 Date: Wed, 02 Mar 2005 10:53:45 +0200 To: anthony.caduto@micorp.com Subject: Re: Using pg_dump through odbc Cc: pgsql-odbc@postgresql.org References: From: Din Adrian Organization: Om Computer & Software Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID: In-Reply-To: User-Agent: Opera M2/7.50 (Win32, build 3778) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200503/9 X-Sequence-Number: 5027 Yes, I think this is the only solution - to use the pg_dump.exe in my application ... I have allready started to do so ... Thank You, -- Adrian Din, Om Computer & Software On Tue, 1 Mar 2005 11:46:18 -0600, wrote: > Just include the win32 versions of pg_dump/restore from the win32 > Postgresql 8.x release, then use the createprocess api commad to execute > the pg_dump.exe. > By using createprocess you can pipe the output of the exe into your Dephi > apps window. That's all PG admin 3 does. > Do a search on google on createprocess and piping Standard Output. > > > > Tony Caduto > Senior Programmer/Analyst > > > > > Din Adrian > Sent by: pgsql-odbc-owner@postgresql.org > 03/01/2005 07:19 AM > > To > pgsql-odbc@postgresql.org > cc > > Subject > [ODBC] Using pg_dump through odbc > > > > > > > Hello, > I am using Delphi with psqlodbc and postgresql. > The problem is that I want the users to be able to backup the database > from client stations by pressing a button. So my question is how can I > run > a pg_dump or psql command from delphi through odbc and get back the > dumped data ? > Any ideea or maybe a workaround? > > Thank you, > Adrian Din, > Om Computer & Software > > ---------------------------(end of broadcast)--------------------------- > TIP 4: Don't 'kill -9' the postmaster > >