mirror of
https://github.com/postgres/postgres.git
synced 2025-06-14 18:42:34 +03:00
XLOG file archiving and point-in-time recovery. There are still some
loose ends and a glaring lack of documentation, but it basically works. Simon Riggs with some editorialization by Tom Lane.
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.120 2004/07/17 17:28:29 tgl Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.121 2004/07/19 02:47:06 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -5414,15 +5414,8 @@ copy_relation_data(Relation rel, SMgrRelation dst)
|
||||
/*
|
||||
* We need to log the copied data in WAL iff WAL archiving is enabled
|
||||
* AND it's not a temp rel.
|
||||
*
|
||||
* XXX when WAL archiving is actually supported, this test will likely
|
||||
* need to change; and the hardwired extern is cruddy anyway ...
|
||||
*/
|
||||
{
|
||||
extern char XLOG_archive_dir[];
|
||||
|
||||
use_wal = XLOG_archive_dir[0] && !rel->rd_istemp;
|
||||
}
|
||||
use_wal = XLogArchivingActive() && !rel->rd_istemp;
|
||||
|
||||
nblocks = RelationGetNumberOfBlocks(rel);
|
||||
for (blkno = 0; blkno < nblocks; blkno++)
|
||||
|
Reference in New Issue
Block a user