Re: pg_restore new option -m

From: Andrew Dunstan <andrew(at)dunslane(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: ohp(at)pyrenet(dot)fr, pgsql-hackers list <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: pg_restore new option -m
Date: 2009-02-20 02:58:18
Message-ID: 499E1C4A.8070601@dunslane.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Tom Lane wrote:
> ohp(at)pyrenet(dot)fr writes:
>
>> pg_restore -C -m 4 -d template1 db.dmp
>> gives numerous errors, mostly no such relation at index creation time.
>>
>
> You sure you don't get exactly the same without -m?
>

Yeah, I have reproduced this. It's because we reconnect to the wrong db
in this case (i.e. to the -d database, not the created one) in the
workers and subsequent connects.

I've applied a trivial patch to fix it.

cheers

andrew

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Robert Haas 2009-02-20 03:43:09 Re: GIN fast insert
Previous Message Andrew Dunstan 2009-02-20 02:00:55 Re: ORDER BY with EXCEPT?