Unix Technical Forum

jumpstart - pgsql.v824

This is a discussion on jumpstart - pgsql.v824 within the pgsql Admins forums, part of the PostgreSQL category; --> Hi Everyone, Is there any way to trick an instance into starting when you just have base, global, pg_clog, ...


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

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-10-2008, 08:17 AM
dx k9
 
Posts: n/a
Default jumpstart - pgsql.v824



Hi Everyone,

Is there any way to trick an instance into starting when you just have base, global, pg_clog, pg_mulitxact, pg_subtrans, pg_tblspc, & pg_twophase, butno pg_xlog?

We weren't backing up the pg_xlog, because we didn't think we needed it, but the backup_label seems to need it. Even if we take the backup_label file out, and try to start postgres, it doesn't start.

I'm going to start experimenting and testing to see if I can trick it to starting, but if anyone has any insight that would help. We noticed this on a test restore, so it wasn't a major problem, now we are backing up the pg_xlog files as well.

~DjK


__________________________________________________ _______________
Windows Live Hotmail and Microsoft Office Outlook – together at last. *Get it now.
http://office.microsoft.com/en-us/ou...CL100626971033
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-10-2008, 08:17 AM
Peter Childs
 
Posts: n/a
Default Re: jumpstart - pgsql.v824

On 02/11/2007, dx k9 <bitsandbytes88@hotmail.com> wrote:
>
> Hi Everyone,
>
> Is there any way to trick an instance into starting when you just have
> base, global, pg_clog, pg_mulitxact, pg_subtrans, pg_tblspc, & pg_twophase,
> but no pg_xlog?
>
> We weren't backing up the pg_xlog, because we didn't think we needed it,
> but the backup_label seems to need it. Even if we take the backup_label
> file out, and try to start postgres, it doesn't start.
>
> I'm going to start experimenting and testing to see if I can trick it to
> starting, but if anyone has any insight that would help. We noticed thison
> a test restore, so it wasn't a major problem, now we are backing up the
> pg_xlog files as well.
>
> ~DjK
>
>
> ------------------------------
> Windows Live Hotmail and Microsoft Office Outlook – together at last. Get
> it now!<http://office.microsoft.com/en-us/outlook/HA102225181033.aspx?pid=CL100626971033>
>


Please reread the instructions on pitr and then create an empty pg_xlog
directory it can then be filled using what ever you have set
"restore_command" to.
I guess thats what you want to achieve?

Peter.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-10-2008, 08:17 AM
Tom Lane
 
Posts: n/a
Default Re: jumpstart - pgsql.v824

dx k9 <bitsandbytes88@hotmail.com> writes:
> Is there any way to trick an instance into starting when you just have base, global, pg_clog, pg_mulitxact, pg_subtrans, pg_tblspc, & pg_twophase, but no pg_xlog?


pg_resetxlog would probably be enough to get it to start, but the odds
of having a non-corrupt database afterwards don't seem very good.

> We weren't backing up the pg_xlog, because we didn't think we needed it, but the backup_label seems to need it. Even if we take the backup_label file out, and try to start postgres, it doesn't start.


Have you read the manual's chapter on backup/restore? There are several
documented ways to do things successfully, but inventing your own is not
likely to work.

regards, tom lane

---------------------------(end of broadcast)---------------------------
TIP 3: Have you checked our extensive FAQ?

http://www.postgresql.org/docs/faq

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 02:33 PM.


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