Re: A few questions to real pgsql gurus

Поиск
Список
Период
Сортировка
От Larry Rosenman
Тема Re: A few questions to real pgsql gurus
Дата
Msg-id 163440000.1046110252@lerlaptop.iadfw.net
обсуждение исходный текст
Ответ на Re: A few questions to real pgsql gurus  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: A few questions to real pgsql gurus
Re: A few questions to real pgsql gurus
Список pgsql-general

--On Monday, February 24, 2003 12:28:03 -0500 Tom Lane <tgl@sss.pgh.pa.us>
wrote:

> Dennis Gearon <gearond@cvc.net> writes:
>> And what about all the stuff in memory, pending transactions, etc?
>
> If he's got an accurate snapshot of the WAL files, everything the
> database has claimed to be committed will be committed.  It's the same
> scenario as a crash.
>
> The trouble with most "I'll just take a tar dump/rsync copy/whatever
> of the $PGDATA directory" backup solutions is that you don't get a copy
> of the WAL files that's consistent with what you copy out of the other
> subdirectories --- and any time skew there will burn you.  See recent
> reports of duplicate rows for an example.  But if NetApp can implement
> an instantaneous copy (and offhand it seems that they should be able to,
> since they sit between PG and the disk) then it should work.
>
> I'd still recommend some tests before trusting it ;-)
the netapp facility is called SnapShot.

What happens is that the original blocks of the file are write protected,
and any changes are put elsewhere.  (I don't recall whether it's the new or
the old blocks that get saved, but it doesn't matter, the effect is the
same).

The snapshot stuff in Veritas' VxFS is very similar.

It makes a consistent view of the filesystem available for backup.

LER

>
>             regards, tom lane
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>



--
Larry Rosenman                     http://www.lerctr.org/~ler
Phone: +1 972-414-9812                 E-Mail: ler@lerctr.org
US Mail: 1905 Steamboat Springs Drive, Garland, TX 75044-6749




В списке pgsql-general по дате отправления:

Предыдущее
От: Dmitry Tkach
Дата:
Сообщение: Re: how do i avoid multiple sessions from inserting the same row?
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: how do i avoid multiple sessions from inserting the