Re: refreshing a database with pg_dump and psql

From: Wei Shan <weishan(dot)ang(at)gmail(dot)com>
To: "David G(dot) Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org, "Rossi, Maria" <maria(dot)rossi(at)us(dot)pgds(dot)com>
Subject: Re: refreshing a database with pg_dump and psql
Date: 2015-05-27 00:38:57
Message-ID: CAFe9ZTo4ujAs6oq2U+5-fuhVjq=MTN2Oih9efGSeA+7=hXoBAw@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

I think he meant to keep a development database in sync with the
production database.
On 27 May 2015 7:36 am, "David G. Johnston" <david(dot)g(dot)johnston(at)gmail(dot)com>
wrote:

> On Tuesday, May 26, 2015, Rossi, Maria <maria(dot)rossi(at)us(dot)pgds(dot)com> wrote:
>>
>> I have a database that was created from a ‘pg_dump –C’. No problems
>> there. Then I ran the pg_dump again, this time without the –C. and tried
>> to load it. But got a bunch of ‘object already exist’.
>>
>> Can’t I refresh an existing database from a plain pg_dump? Is there an
>> option that I have to use?
>>
> You should probably expound on what you mean by "refresh".
>
> David J.
>

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Rossi, Maria 2015-05-27 00:44:32 Re: refreshing a database with pg_dump and psql
Previous Message Jan Lentfer 2015-05-26 21:41:15 Re: refreshing a database with pg_dump and psql