diff options
| author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-01-28 07:31:42 +0000 |
|---|---|---|
| committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-01-28 07:31:42 +0000 |
| commit | e0e8b9634555f876570d3c1596a50419848a1046 (patch) | |
| tree | 55028000a2c0d285e8b06990b92d45a2c5476a15 /src/backend/commands/tablecmds.c | |
| parent | e3f36838e5b2666a15286b137bb11f35a7245848 (diff) | |
| download | postgresql-e0e8b9634555f876570d3c1596a50419848a1046.tar.gz | |
Change a few remaining calls of XLogArchivingActive() to use
XLogIsNeeded() instead, to determine if an otherwise non-logged operation
needs to be logged in WAL for standby servers.
Fujii Masao
Diffstat (limited to 'src/backend/commands/tablecmds.c')
| -rw-r--r-- | src/backend/commands/tablecmds.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index e1b4532583..89447d3678 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.318 2010/01/22 16:40:18 rhaas Exp $ + * $PostgreSQL: pgsql/src/backend/commands/tablecmds.c,v 1.319 2010/01/28 07:31:42 heikki Exp $ * *------------------------------------------------------------------------- */ @@ -2998,7 +2998,8 @@ ATRewriteTable(AlteredTableInfo *tab, Oid OIDNewHeap) * Prepare a BulkInsertState and options for heap_insert. Because * we're building a new heap, we can skip WAL-logging and fsync it * to disk at the end instead (unless WAL-logging is required for - * archiving). The FSM is empty too, so don't bother using it. + * archiving or streaming replication). The FSM is empty too, + * so don't bother using it. */ if (newrel) { @@ -3006,7 +3007,7 @@ ATRewriteTable(AlteredTableInfo *tab, Oid OIDNewHeap) bistate = GetBulkInsertState(); hi_options = HEAP_INSERT_SKIP_FSM; - if (!XLogArchivingActive()) + if (!XLogIsNeeded()) hi_options |= HEAP_INSERT_SKIP_WAL; } else |
