pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Ian Burrell <ib@onsitetech.com>
Cc: pgsql-admin@postgresql.org, Philip Warner <pjw@rhyme.com.au>
Subject: Re: pg_restore problem with 7.3.1
Date: Mon, 17 Feb 2003 20:51:01 -0500 (EST)
Message-ID: <200302180151.h1I1p1M27555@candle.pha.pa.us> (raw)
In-Reply-To: <13835.1044554673@sss.pgh.pa.us>


Did this ever get addressed?

---------------------------------------------------------------------------

Tom Lane wrote:
> Ian Burrell <ib@onsitetech.com> writes:
> > I just recreated the problem with a slightly different command.  The 
> > problem was caused by using a list file to skip loading some function 
> > definitions that were causing problems.  The command that loaded 
> > everything into template1 was:
> 
> > pg_restore -C -d template1 -L mpmx.lst -Ft mpmx.tar
> 
> > It looks like the CREATE DATABASE call isn't done unless the -C flag is 
> > included both when the list file is created and when doing the restore.
> 
> Yeah, that seems to make sense.  I observe that -C causes an additional
> entry to be made in the list file:
> 
> $ pg_restore -l r.tar >r.lst
> $ pg_restore -C -l r.tar >r.lstc
> $ diff r.lst r.lstc
> 13a14
> > 1; 0 DATABASE regression postgres
> 
> and it makes sense that the actual CREATE DATABASE command would be
> issued when that TOC entry is processed (if -C was given).
> 
> Offhand it seems to me that -l should produce this list-file entry
> always, regardless of -C; and perhaps "pg_restore -C -L" should
> complain if it doesn't find a DATABASE entry in the list (though I'm
> unsure how hard that is to implement).
> 
> Philip, any comments?  Do you have time to fix this?
> 
> 			regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
> 

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073



view thread (7+ messages)

Message-ID: <200302180151.h1I1p1M27555@candle.pha.pa.us>
Permalink:  ../200302180151.h1I1p1M27555@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200302180151.h1I1p1M27555@candle.pha.pa.us

 · 

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: pgman@candle.pha.pa.us, tgl@sss.pgh.pa.us, ib@onsitetech.com, pjw@rhyme.com.au
  Subject: Re: pg_restore problem with 7.3.1
  In-Reply-To: <200302180151.h1I1p1M27555@candle.pha.pa.us>
  References: <13835.1044554673@sss.pgh.pa.us> <200302180151.h1I1p1M27555@candle.pha.pa.us>

* 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