pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
jumpstart - pgsql.v824
3+ messages / 3 participants
[nested] [flat]

* jumpstart - pgsql.v824
@ 2007-11-02 14:11  dx k9 <bitsandbytes88@hotmail.com>
  0 siblings, 2 replies; 3+ messages in thread

From: dx k9 @ 2007-11-02 14:11 UTC (permalink / raw)
  To: pgsql-admin



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 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/outlook/HA102225181033.aspx?pid=CL100626971033=

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: jumpstart - pgsql.v824
@ 2007-11-02 15:15  Peter Childs <peterachilds@gmail.com>
  parent: dx k9 <bitsandbytes88@hotmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Peter Childs @ 2007-11-02 15:15 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin

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 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/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.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: jumpstart - pgsql.v824
@ 2007-11-02 15:25  Tom Lane <tgl@sss.pgh.pa.us>
  parent: dx k9 <bitsandbytes88@hotmail.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Tom Lane @ 2007-11-02 15:25 UTC (permalink / raw)
  To: dx k9 <bitsandbytes88@hotmail.com>; +Cc: pgsql-admin

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2007-11-02 15:25 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-11-02 14:11 jumpstart - pgsql.v824 dx k9 <bitsandbytes88@hotmail.com>
2007-11-02 15:15 ` Peter Childs <peterachilds@gmail.com>
2007-11-02 15:25 ` Tom Lane <tgl@sss.pgh.pa.us>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox