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@postgresql.org)
Para cambiar tu suscripción:
http://www.postgresql.org/mailpref/pgsql-es-ayuda

Responder a