Em 28-11-2012 13:41, Glauco Torres escreveu:
> LOG:  database system was shut down at 2012-11-28 11:25:40 BRST
> LOG:  entering standby mode
> LOG:  consistent recovery state reached at 0/2C5B1F28
> LOG:  record with zero length at 0/2C5B1F28
> LOG:  database system is ready to accept read only connections
> LOG:  streaming replication successfully connected to primary
> ERROR:  cannot execute INSERT in a read-only transaction
> STATEMENT:  insert into sis.glauco(idexecutavel,idbuild) values
> ('1655','54');
> FATAL:  could not connect to the primary server: could not connect to
> server: Conexão recusada
>                  Is the server running on host "10.10.10.231" and accepting
>                  TCP/IP connections on port 5432?
>
> Mesmo não conseguindo conectar no server principal ( 10.10.10.231 ) ele
> não libera a escrita.

E ele *não* vai fazer isso mesmo.
Você é quem tem que dizer pra ele "assuma e aceite escrita!"
Pra isso, você tem de criar o arquivo trigger. Quem manda é você! O 
PostgreSQL não toma essa decisão sozinho, nem deveria mesmo.

[]s

__________________________________
Flavio Henrique A. Gurgel
Líder de Projetos Especiais
Consultoria, Projetos & Treinamentos 4LINUX
Tel1: +55-11.2125-4747 ou 2125-4748
www.4linux.com.br
email: fla...@4linux.com.br
______________________________
FREE SOFTWARE SOLUTIONS
_______________________________________________
pgbr-geral mailing list
pgbr-geral@listas.postgresql.org.br
https://listas.postgresql.org.br/cgi-bin/mailman/listinfo/pgbr-geral

Responder a