pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Din Adrian <adrian.din@easynet.ro>
To: anthony.caduto@micorp.com
Cc: pgsql-odbc@postgresql.org
Subject: Re: Using pg_dump  through  odbc
Date: Wed, 02 Mar 2005 10:53:45 +0200
Message-ID: <opsmz5nvhnawcxfg@adi> (raw)
In-Reply-To: <OF6DB3D286.7AD28B42-ON86256FB7.00618D4B-86256FB7.00619F8D@micorp.com>
References: <OF6DB3D286.7AD28B42-ON86256FB7.00618D4B-86256FB7.00619F8D@micorp.com>

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, <anthony.caduto@micorp.com> 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 <adrian.din@easynet.ro>
> 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
>
>






view thread (5+ messages)

Message-ID: <opsmz5nvhnawcxfg@adi>
Permalink:  ../opsmz5nvhnawcxfg@adi/
Also on:    postgresql.org/message-id/opsmz5nvhnawcxfg@adi

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: adrian.din@easynet.ro, anthony.caduto@micorp.com
  Subject: Re: Using pg_dump  through  odbc
  In-Reply-To: <opsmz5nvhnawcxfg@adi>
  References: <OF6DB3D286.7AD28B42-ON86256FB7.00618D4B-86256FB7.00619F8D@micorp.com> <opsmz5nvhnawcxfg@adi>

* 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