diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-19 02:47:16 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2004-07-19 02:47:16 +0000 |
commit | 66ec2db72840e4e400d879578744420c969ed7bf (patch) | |
tree | 44aa43c732dabe83405bc3a456f5f8c43845bf7c /src/backend/commands/tablecmds.c | |
parent | d0c1bbdcc61a4ac7cf005451af507ea8d0c64f54 (diff) | |
download | postgresql-66ec2db72840e4e400d879578744420c969ed7bf.tar.gz postgresql-66ec2db72840e4e400d879578744420c969ed7bf.zip |
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.
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 11 |
1 files changed, 2 insertions, 9 deletions
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++) |