From 66ec2db72840e4e400d879578744420c969ed7bf Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 19 Jul 2004 02:47:16 +0000 Subject: 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. --- src/backend/commands/tablecmds.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/backend/commands/tablecmds.c') diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index d5cdb909c33..241f2550f6b 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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++) -- cgit v1.2.3