From: | Edson Richter <edsonrichter(at)hotmail(dot)com> |
---|---|
To: | Lonni J Friedman <netllama(at)gmail(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: dropdb breaks replication? |
Date: | 2012-10-31 18:01:26 |
Message-ID: | BLU0-SMTP15775DC795429CC585F5ABECF610@phx.gbl |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Em 31/10/2012 15:39, Lonni J Friedman escreveu:
> On Wed, Oct 31, 2012 at 10:32 AM, Edson Richter
> <edsonrichter(at)hotmail(dot)com> wrote:
>> I've two PostgreSQL 9.1.6 running on Linux CentOS 5.8 64bit.
>> They are replicated asynchronously.
>>
>> Yesterday, I've dropped a database of 20Gb, and then replication has broken,
>> requiring me to manually synchronize both servers again.
>>
>> It is expected that dropdb (or, perhaps, createdb) break existing
>> replication between servers?
> How did you determine that replication was broken, and how did you
> manually synchronize the servers? Are you certain that replication
> was working prior to dropping the database?
>
>
I'm sure replication was running.
I usually keep two windows open in both servers, running
In master:
watch -n 2 "ps aux | egrep sender"
In slave:
watch -n 2 "ps aux | egrep receiver"
At the point the dropdb command has been executed, both disappeared from
my "radar".
Also, in the log there is the following error:
LOG: replicação em fluxo conectou-se com sucesso ao servidor principal
FATAL: não pôde receber dados do fluxo do WAL: FATAL: segmento do WAL
solicitado 0000000100000001000000BE já foi removido
May the cause not having enough segments (currently 80) for dropdb
command? Is dropdb logged in transaction log page-by-page excluded?
Thanks,
Edson
From | Date | Subject | |
---|---|---|---|
Next Message | Raghavendra | 2012-10-31 18:08:31 | Re: Boolean type storage format |
Previous Message | Lonni J Friedman | 2012-10-31 17:39:54 | Re: dropdb breaks replication? |