From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Hellmuth Vargas <hivs77(at)gmail(dot)com> |
Cc: | Jaime Casanova <jaime(dot)casanova(at)2ndquadrant(dot)com>, Francisco Olarte <folarte(at)peoplecall(dot)com>, Eduardo Morras <emorrasg(at)yahoo(dot)es>, Lista Postgres ES <pgsql-es-ayuda(at)postgresql(dot)org> |
Subject: | Re: Usando WAL en memoria junto con streaming replication |
Date: | 2016-07-12 12:50:45 |
Message-ID: | 20160712125045.GA873668@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-es-ayuda |
Hellmuth Vargas escribió:
> Pero tengo entendido que ejecutar un pg_resetxlog es el ultimo recurso y
> una vez suba la instancia hay realizar un dump/initdb/restore
>
> https://www.postgresql.org/docs/9.4/static/app-pgresetxlog.html
>
> "After running this command, it should be possible to start the server, but
> bear in mind that the database might contain inconsistent data due to
> partially-committed transactions. You should immediately dump your data, run
> initdb, and reload. After reload, check for inconsistencies and repair as
> needed."
Eso aplica al caso general en el que tenías algo en xlog y usaste
pg_resetxlog para borrarlo. Si lo haces inmediatamente después de un
checkpoint de apagado, no hay inconsistencia posible y no necesitas
hacer todo ese enjuague. El pg_resetxlog que yo propongo es solamente
para escribir un checkpoint ficticio y apuntar el pg_control a ese
checkpoint, para que el sistema te permita levantar.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
-
Enviado a la lista de correo pgsql-es-ayuda (pgsql-es-ayuda(at)postgresql(dot)org)
Para cambiar tu suscripción:
http://www.postgresql.org/mailpref/pgsql-es-ayuda
From | Date | Subject | |
---|---|---|---|
Next Message | david buenaño | 2016-07-12 15:03:16 | Actualizar o insertar datos en postgres de SQL Server |
Previous Message | Hellmuth Vargas | 2016-07-12 12:31:44 | Re: Usando WAL en memoria junto con streaming replication |