RES: 20110408pg upgrade fix: How do I know if I am being affected before errors occur

From: "Carlos Sotto Maior \(SIM\)" <csotto(at)sistemassim(dot)com(dot)br>
To: <pgsql-admin(at)postgresql(dot)org>
Subject: RES: 20110408pg upgrade fix: How do I know if I am being affected before errors occur
Date: 2011-04-14 19:07:57
Message-ID: 00bc01cbfad7$4e67f6e0$eb37e4a0$@sistemassim.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi,

I just noticed this thread today.
I am running 9.0.3. I Read the 20110408 upgrade fix announcement, checked
pg_clog/ and noticed that it show only a single 0000 file.

I understand I may be hit by the mentioned problem.

Yes, I do have all tar archives available, but since my Database is
relatively small I can afford dumping / recreating and restoring this night
which is great.

My questions are:
Having a single 0000 in the pg_clog directory is indicative that my database
has been hit ?
If I run a database wise 'vacuum freeze' and all goes well does it means I
do not have to take any action?
Dumping and recreating the data base would be my best option to get rid of
this potential problem. Correct ?

Thanks,

Carlos Sotto Maior
+55 11 8244-7899
csotto(at)sistemassim(dot)com(dot)br

Sistemas Sim Serviços e Tecnologia Ltda.
+55 11 5041-3086
Rua Tenente Gomes Ribeiro, 78
Vila Clementino (Próximo ao Metro Santa Cruz)
São Paulo - SP
04038-040

-----Mensagem original-----
De: pgsql-admin-owner(at)postgresql(dot)org
[mailto:pgsql-admin-owner(at)postgresql(dot)org] Em nome de Stephen Frost
Enviada em: sábado, 9 de abril de 2011 11:32
Para: Erwin Brandstetter
Cc: pgsql-admin(at)postgresql(dot)org
Assunto: Re: [ADMIN] 20110408pg upgrade fix: How do I know if I am being
affected before errors occur

Erwin,

* Erwin Brandstetter (brsaweda(at)gmail(dot)com) wrote:
> - Can applying the proposed fix break anything if the db wasn't
> affected to begin with?

Running a database-wide 'vacuum freeze;' will either succeed (and all will
be well), or it'll generate the errors in the message (in which case you'll
need to restore the CLOG files, as at the wiki page, and then re-run the
'vacuum freeze;').

Thanks,

Stephen

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Sam Nelson 2011-04-14 21:21:42 Version String
Previous Message Simon Riggs 2011-04-14 14:52:15 Re: Warm Standby on 8.4.7