Re: [GSOC] - I ntegrity check algorithm for data files

From: Zdenek Kotala <Zdenek(dot)Kotala(at)Sun(dot)COM>
To: Robert Mach <mach(dot)robert(at)gmail(dot)com>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>, Neil Conway <neilc(at)samurai(dot)com>, Simon Riggs <simon(at)2ndquadrant(dot)com>, Heikki Linnakangas <heikki(at)enterprisedb(dot)com>
Subject: Re: [GSOC] - I ntegrity check algorithm for data files
Date: 2007-05-23 12:32:00
Message-ID: 46543440.3080500@sun.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Robert Mach wrote:

>
> I see different ways of delivering this functionality to Postgresql. The
> best of course would be to become part of Postgresql release either as a
> PostgreSQL command (like UPDATE) or as an postgresql server application
> like vacuumdb.
> Other possibility is to create a freestanding program that would be
> called with location of datafiles as arguments.
> Last possibility is to create an administrative console access (single
> user mode) to the database in which this integrity check could be fired.

I discussed It with Niel and for logical test It should be PostgreSQL
function. However, for physical layer test database cluster should be in
inconsistent state and PostgreSQL startup process fails. It means that
there are only limited possibilities.

1) standalone binary, which will be linked mostly from postgreSQL object
files and replace main and add new testing functionality. This is
recommended by Neil.

2) Add new postmaster context/mod - repair and recovery, when postgres
is run as "postmaster --recovery".

3) My personal favorite is create management console - which allows to
perform check without physically access to local machine. Management
console should be use for another purpose - for example disable/enable
databases from cluster, perform upgrade of datalayer to the new version,
kill sessions, update postgresql.conf and so on...

However this solution has significant impact on current postgres
behavior, but I think it should be big deal for postgres.

Zdenek

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Richard Huxton 2007-05-23 13:09:55 Re: [GSOC] - I ntegrity check algorithm for data files
Previous Message NikhilS 2007-05-23 10:54:29 Re: CREATE TABLE LIKE INCLUDING INDEXES support