pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <Kevin.Grittner@wicourts.gov>
To: Tena Sakai <tsakai@gallo.ucsf.edu>
To: pgsql-admin@postgresql.org <pgsql-admin@postgresql.org>
Cc: ian.lea@gmail.com <ian.lea@gmail.com>
Subject: Re: trouble restoring database
Date: Tue, 24 Aug 2010 16:30:42 -0500
Message-ID: <4C73F3B20200002500034B01@gw.wicourts.gov> (raw)
In-Reply-To: <C8998628.C121%tsakai@gallo.ucsf.edu>
References: <4C73D33F0200002500034AF1@gw.wicourts.gov>
	<C8998628.C121%tsakai@gallo.ucsf.edu>

Tena Sakai <tsakai@gallo.ucsf.edu> wrote:
 
> Having said that, I think Ian is correct that I was missing -c
> flag in the command below:
>   gunzip ..../dumpall20100822.0.gz | /usr/local/pgsql/bin/psql -f
> - postgres
 
Yeah.  Good spot on Ian's part.
 
> This command, I think, uncompressed the file, but didn't feed the
> output into the pipe and psql just waited and then received
> nothing and terminated.
 
Agreed.
 
> Since the file got uncompressed, I am now running the command:
>   psql -f /home/tsakai/Notes/postgres/dumpall20100822.0
> and I think it is working.  It is giving messsages:
>   ERROR:  role "postgres" already exists
>   STATEMENT:  CREATE ROLE postgres;
>   ERROR:  database "testdb" already exists
>   STATEMENT:  CREATE DATABASE testdb WITH TEMPLATE = template0
> OWNER = postgres ENCODING = 'UTF8';
>   LOG:  checkpoints are occurring too frequently (5 seconds apart)
>   HINT:  Consider increasing the configuration parameter
> "checkpoint_segments".
> 
> 
> The last 2 lines are repeated many, many times.  This is not
> terribly Serious, is it?  (I will fix it via postgresql.conf file
> shortly.)
 
The frequent checkpoints may affect the speed of the restore,
nothing more serious than that.
 
-Kevin



view thread (7+ messages)  latest in thread

Message-ID: <4C73F3B20200002500034B01@gw.wicourts.gov>
Permalink:  ../4C73F3B20200002500034B01@gw.wicourts.gov/
Also on:    postgresql.org/message-id/4C73F3B20200002500034B01@gw.wicourts.gov

 · 

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-admin@postgresql.org
  Cc: Kevin.Grittner@wicourts.gov, tsakai@gallo.ucsf.edu, ian.lea@gmail.com
  Subject: Re: trouble restoring database
  In-Reply-To: <4C73F3B20200002500034B01@gw.wicourts.gov>
  References: <4C73D33F0200002500034AF1@gw.wicourts.gov> <C8998628.C121%tsakai@gallo.ucsf.edu> <4C73F3B20200002500034B01@gw.wicourts.gov>

* 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