Re: Is there a way to backup Postgres via SQL commands?

From: Alban Hertroys <dalroi(at)solfertje(dot)student(dot)utwente(dot)nl>
To: voipfc(at)gmail(dot)com
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is there a way to backup Postgres via SQL commands?
Date: 2010-06-14 13:01:07
Message-ID: 513F71C7-6491-4233-869D-F85A8BE828F7@solfertje.student.utwente.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 14 Jun 2010, at 13:28, Frank Church wrote:

> Are there SQL commands that can do a backup over a client connection,
> rather than from the command line like pgsql etc?

No.

> By that I mean some kind of SELECT commands that can retrieve the
> database's content as SQL commands that can be replayed to a server to
> restore it, rather than something that saves directly to file, or
> passes it through a pipe?

That sounds quite a bit like replicating the DB to a warm standby, is that what you're after? There are several solutions for that.

Alban Hertroys

--
If you can't see the forest for the trees,
cut the trees and you'll see there is no forest.

!DSPAM:737,4c16281d286215086519202!

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Raymond O'Donnell 2010-06-14 13:05:27 Re: Is there a way to backup Postgres via SQL commands?
Previous Message David Wilson 2010-06-14 12:53:06 Re: Partial indexes instead of partitions