Re: tables mysteriously truncated

From: Alvaro Herrera <alvherre(at)2ndquadrant(dot)com>
To: Gabriel E(dot) Sánchez Martínez <gabrielesanchez(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: tables mysteriously truncated
Date: 2013-03-13 21:26:12
Message-ID: 20130313212612.GC3697@alvh.no-ip.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

"Gabriel E. Sánchez Martínez" escribió:
> I will try to make these tables logged and see if they withstand the
> test of time. Are crashes and unclean shutdowns logged anywhere? I
> would like to see why I might be getting them. I have not had to
> manually restart the database, if that were an indication of a
> crash.

Yes, crashes are logged in the server log. There's support for
automatic recovery and restart after a crash, so it's quite plausible
that you're not seeing anything if you're not paying attention.
Sessions that were running prior to the crash are terminated, though, so
if you keep connections open, you'd notice because they would no longer
work.

Crashes should certainly not happen routinely. If they are, you have a
problem that's worth investigating.

--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Tim Watts 2013-03-21 12:22:11 Postgresql 8.4 GSSAPI auth with fallback to password prompting?
Previous Message Gabriel E. Sánchez Martínez 2013-03-13 18:16:08 Re: tables mysteriously truncated