Unix Technical Forum

Replacing the corrupt "global" folder with older one

This is a discussion on Replacing the corrupt "global" folder with older one within the pgsql Admins forums, part of the PostgreSQL category; --> PostgreSQL version: 8.1.2 Operating system: Windows XP/2003 The PostgreSQL service is not starting anymore. When I manually start it, ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Admins

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 09:19 AM
chris.jurado
 
Posts: n/a
Default Replacing the corrupt "global" folder with older one

PostgreSQL version: 8.1.2
Operating system: Windows XP/2003

The PostgreSQL service is not starting anymore. When I manually start it, it said something like it started but ended immediately because it had no work to do. I encountered this error before but a simple re-installation fixed it. This time, it didn't.

I've tried running the service using a backup data folder w/c was 2 days ago, it runs. When I switch back to the current, I get the error above. So, I figured the current data must be corrupt. After examination of the data folder, the global folder is now not a folder but a file that is 8KB in size (I found this out by trying out the reset_xlog command and it said it could no longer find the global/xxx file).

I searched the documentation about what the global folder contains and found out that these contain cluster-wide tables like the list of databases, etc.

I wanted not to lose the latest transactions by restoring a backup. Now the question is this, is it ok to just copy the global folder from my backup 2 days ago, and replace the one in my current data folder? I'm very very sure no DDL statements were executed or no new databases/other objects were created since my last backup. Only DML statements were executed on the user's databases. Will I lose data if I do this?
--------------------------------------------------------------
Christopher Brian L. Jurado
Big Smile Interactive
Primary Sotware Development Corporation
www.primesoft.ph




__________________________________________________ ______________
Sent via the WebMail system at primesoft.ph





--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your Subscription:
http://mail.postgresql.org/mj/mj_www...ra=pgsql-admin

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com