Skip site navigation (1) Skip section navigation (2)

Retrieving data from the data files.

From: Darren Reed <darrenr+postgres(at)fastmail(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Retrieving data from the data files.
Date: 2008-02-26 10:15:50
Message-ID: 47C3E6D6.50902@fastmail.net (view raw or flat)
Thread:
Lists: pgsql-admin
For whatever reason, I seem to be plagued with issues...
Whether they're hardware or operating system or a bad
combination....I'm not sure yet....and I find myself needing
to recover from postgres not wanting to play all too often.

In looking at the database data files, I notice that in (for example)
a file called /data/db/base/10819/16397, are the contents for
one of the relations.  The data appears to be correctly stored
with NULLs for field seperators, etc.  On the assumption that
the raw data itself is ok, how do I get that data out?

Has anyone written a program to extract data directly from
the database data files without using postgres?

Are there any caveats in doing so?

Darren

pgsql-admin by date

Next:From: Darren ReedDate: 2008-02-26 10:23:07
Subject: Re: How to reindex when unable to open relation?
Previous:From: Tom LaneDate: 2008-02-26 07:42:47
Subject: Re: Latest postgres stable version

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group