Re: How to dump data from database?

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: go <go(at)ugnn(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to dump data from database?
Date: 2005-04-05 04:21:54
Message-ID: 20050405042154.GA22071@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

[Please copy the mailing list on replies.]

On Tue, Apr 05, 2005 at 08:07:47AM +0400, go wrote:
> MF> On Mon, Apr 04, 2005 at 01:11:20PM +0400, go wrote:
> >>
> >> I would like to "pg_dump -Fc MyDataBase>archiv.dat" ( maybe there is
> >> any SQL command or something else) .
> >> in case with COPY command I have to copy each table one by one.
>
> MF> I suppose you could write a function in a procedural language like
> MF> PL/Perl, PL/Python, or PL/Tcl that runs pg_dump, but why do you
> MF> need to do this from SQL? Why can't you just run pg_dump from
> MF> outside the database?
>
> Pls, write a small sample of the function .

Could you tell us why you want to run pg_dump from SQL? What problem
are you trying to solve?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Neil Conway 2005-04-05 04:26:57 Re: Regarding niladic functions
Previous Message Michael Fuhr 2005-04-05 03:45:45 Re: How to dump data from database?