Re: [HACKERS] Online backup vs Continuous backup

From: Greg Stark <gsstark(at)mit(dot)edu>
To: "Andrew Dunstan" <andrew(at)dunslane(dot)net>
Cc: <gsstark(at)mit(dot)edu>, <pgman(at)candle(dot)pha(dot)pa(dot)us>, <pgsql-hackers(at)postgresql(dot)org>, <pgsql-docs(at)postgresql(dot)org>
Subject: Re: [HACKERS] Online backup vs Continuous backup
Date: 2005-12-27 23:30:08
Message-ID: 87hd8u5da7.fsf@stark.xeocode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-docs pgsql-hackers pgsql-patches


"Andrew Dunstan" <andrew(at)dunslane(dot)net> writes:

> Greg Stark said:
> > Well fwiw what pg_dump does isn't even considered a "backup" at all in
> > other systems. It's a "logical export" or something of that sort.
> >
> > It's not considered a "backup" because it's saving something different
> > than the actual physical database. When you restore you get something
> > (hopefully) logically equivalent but still physically different.
>
> This seems fairly arbitrary. On that basis anything on a higher level than
> dd is not a backup method, ISTM.

Well most of other options *aren't* any higher level than dd.

Even with PITR you're just storing the transaction logs byte for byte. When
you replay it works at slightly higher level but it's still far from
reinterpreting your data and you'll get (almost) exactly the same bytes back.

I'm not saying pg_dump is a bad thing, but now that Postgres has real backups
there isn't much of a use case for using pg_dump as a stand-in for backups. If
your system crashes and you need to bring up a new system quickly you want to
bring it up in exactly the state the one that crashed was in. You don't want
to pass all the data through a program that interprets the ascii
representation again and hope it comes up with the same data.

There are other reasons to need pg_dump of course. Just not for backups.

--
greg

In response to

Browse pgsql-docs by date

  From Date Subject
Next Message Aftab Alam 2005-12-28 03:22:41 sending mail from Postgres
Previous Message Andrew Dunstan 2005-12-27 20:14:55 Re: [HACKERS] Online backup vs Continuous backup

Browse pgsql-hackers by date

  From Date Subject
Next Message Andrew Dunstan 2005-12-27 23:57:01 Re: [PATCHES] default resource limits
Previous Message Hannu Krosing 2005-12-27 22:47:31 Re: [Bizgres-general] WAL bypass for INSERT, UPDATE and

Browse pgsql-patches by date

  From Date Subject
Next Message Andrew Dunstan 2005-12-27 23:57:01 Re: [PATCHES] default resource limits
Previous Message Andrew Dunstan 2005-12-27 20:14:55 Re: [HACKERS] Online backup vs Continuous backup