Re: how do I clear a page, or set an item in a page to 'free'?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Eric Parusel <lists(at)globalrelay(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: how do I clear a page, or set an item in a page to 'free'?
Date: 2005-03-21 18:04:14
Message-ID: 547.1111428254@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Eric Parusel <lists(at)globalrelay(dot)net> writes:
> I've got a mucked up page in my db, and I can't complete a database dump
> until a particular page is fixed/removed from the table. :(

> Could someone let me know the proper way to go about making a change
> such as this?:

> 1) Clear the page
> or
> 2) Set the bad items in the page to 'free'

Zeroing the page is the most painless way. dd from /dev/zero will get
it done --- but note that you have to shut down the postmaster meanwhile
to ensure Postgres will see your change.

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Jay Guerette 2005-03-21 19:27:39 Re: Copression
Previous Message Alex Adriaanse 2005-03-21 18:02:20 Re: Tracking row updates