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

From: Greg Smith <greg(at)2ndquadrant(dot)com>
To: Dimitri Fontaine <dfontaine(at)hi-media(dot)com>
Cc: voipfc(at)gmail(dot)com, pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Is there a way to backup Postgres via SQL commands?
Date: 2010-06-15 18:14:55
Message-ID: 4C17C31F.4040507@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Dimitri Fontaine wrote:
> Frank Church <voipfc(at)googlemail(dot)com> writes:
>
>> Are there SQL commands that can do a backup over a client connection,
>> rather than from the command line like pgsql etc?
>>
>
> That's pg_dump ?
>

Dimitri has correctly pointed out the flaw behind the basic assumption
being made by asking this question. You do not have to use pg_dump from
the server's command line in order to dump a database. You can install
the same PostgreSQL version on whatever system you want to do the dump
from instead, have it connect to the server as a client, and then dump
your database on that remote system. pg_dump is already a client
application that only requires a network connection to the server and
sends it a series of SQL commands.

--
Greg Smith 2ndQuadrant US Baltimore, MD
PostgreSQL Training, Services and Support
greg(at)2ndQuadrant(dot)com www.2ndQuadrant.us

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Rory Campbell-Lange 2010-06-15 18:28:53 Re: Anyone know about PgMQ?
Previous Message Steve Crawford 2010-06-15 18:14:06 Re: use window as field name in 8.4