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

recreating tables from global files

From: "G(dot) J(dot) Walsh" <gjwalsh(at)dscdirectionalservices(dot)com>
To: pgsql-novice(at)postgresql(dot)org
Subject: recreating tables from global files
Date: 2008-05-21 22:39:17
Message-ID: 1211409557.21745.12.camel@www.dscdirectionalservices.com (view raw or flat)
Thread:
Lists: pgsql-novice
I suffered a major server crash. 

Everything is fully reinstalled now EXCEPT postgresql8.3

There was no way I could see to get postgres running except by
removing /var/lib/pgsql/data. That was, I assumed, okay, because I have
a full backup of all the files.

So ... I reinstalled postgresql binaries following the same procedure as
for the initial installation. I then restored the data/global files, but
postgresql, while finding the database, sees no tables whatever.

I am sure there must be a way to recreate the tables from the files in
the data/global directory but I don't know what that is. Further, of
course, the files representing the tables are identified by numbers, not
their table names.

Until I have the time to research a better way to do future upgrades, I
will block any future ones. Clearly I am missing something here. I even
tried to use the pg_dump untility but it too does not see the tables,
only the database.

Ugh ... I hope someone can render a little first aid. I didn't see this
one coming. Thank goodness this happened before we get into serious data
collection next month.

George

Responses

pgsql-novice by date

Next:From: A BDate: 2008-05-22 07:56:49
Subject: get id of insert in plpgsql function
Previous:From: Tom LaneDate: 2008-05-21 22:22:51
Subject: Re: Singapore time zone

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