Re: [HACKERS] RE: [GENERAL] Transaction logging

From: Vadim Mikheev <vadim(at)krs(dot)ru>
To: Zeugswetter Andreas IZ5 <Andreas(dot)Zeugswetter(at)telecom(dot)at>, PostgreSQL Developers List <hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] RE: [GENERAL] Transaction logging
Date: 1999-07-16 07:35:50
Message-ID: 378EE0D6.21E5B2F9@krs.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-hackers

Vadim Mikheev wrote:
>
> > The "restore of a server" is a main problem here, but I suggest the
> > following
> > additional backup tool, that could be used for a "restore of a server"
> > which could then be used for a rollforward and would also be a lot faster
> > than a pg_dump:
> >
> > 1. place a vacuum lock on db (we don't want vacuum during backup)
> > 2. backup pg_log using direct file access (something like dd bs=32k)
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > 3. backup the rest in any order (same as pg_log)
> > 4. release vacuum lock
>
> It looks like log archiving, not backup.
> I believe that _full_ backup will do near the same
> things as pg_dump now, but _incremental_ backup will
> fetch info about what changed after last _full_ backup
> from log.

Sorry, I was wrong. pg_dump is what's known as Export utility
in Oracle and backup is quite different thing. But I have
corrections for full backup described above:

1. no vacuum lock is needed: all vacuum ops will be logged
in normal way to rollback changes in failures;
2. all datafiles have to be backed up _before_ log backup
due to WAL logic: changes must be written to log before
they'll be written to on-disk data pages.

Vadim

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Leon 1999-07-16 09:45:13 Weird behavior of 'default user'
Previous Message Hub.Org News Admin 1999-07-16 06:17:44

Browse pgsql-hackers by date

  From Date Subject
Next Message Ansley, Michael 1999-07-16 07:38:24 RE: [HACKERS] MAX Query length
Previous Message Oleg Bartunov 1999-07-16 06:19:38 Re: [HACKERS] final #include cleanup