pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bryan White <bryan@arcamax.com>
To: tim@dmcity.net
To: Brian <signal@shreve.net>
To: pgsql-sql@hub.org
Subject: Re: [SQL] Auto-Vacuum?
Date: Thu, 28 Jan 1999 16:48:20 -0500
Message-ID: <000f01be4b07$ee6b0d40$a3f0f6ce@bryan.arcamax.com> (raw)

>What does the "dump" do? I have been just tarring the
>/usr/local/pgsql/data/base/ directory and burning that onto a CD...


pg_dump writes to stdout the sql code needed to recreate the database.  As I
remember there are a couple of catches (it does not recreate views?...).

To restore the database, start with a blank database and do:
psql dbname < mydatabase.db





view thread (6+ messages)  latest in thread

Message-ID: <000f01be4b07$ee6b0d40$a3f0f6ce@bryan.arcamax.com>
Permalink:  ../000f01be4b07$ee6b0d40$a3f0f6ce@bryan.arcamax.com/
Also on:    postgresql.org/message-id/000f01be4b07$ee6b0d40$a3f0f6ce@bryan.arcamax.com

 · 

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-sql@postgresql.org
  Cc: bryan@arcamax.com, tim@dmcity.net, signal@shreve.net, pgsql-sql@hub.org
  Subject: Re: [SQL] Auto-Vacuum?
  In-Reply-To: <000f01be4b07$ee6b0d40$a3f0f6ce@bryan.arcamax.com>
  References: <000f01be4b07$ee6b0d40$a3f0f6ce@bryan.arcamax.com>

* 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