|
15 | 15 | * |
16 | 16 | * |
17 | 17 | * IDENTIFICATION |
18 | | - *$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.123 2006/02/12 06:11:50 momjian Exp $ |
| 18 | + *$PostgreSQL: pgsql/src/bin/pg_dump/pg_backup_archiver.c,v 1.124 2006/02/13 21:30:19 tgl Exp $ |
19 | 19 | * |
20 | 20 | *------------------------------------------------------------------------- |
21 | 21 | */ |
@@ -213,16 +213,16 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt) |
213 | 213 | if (AH->public.verbose) |
214 | 214 | dumpTimestamp(AH,"Started on",AH->createDate); |
215 | 215 |
|
| 216 | +if (ropt->single_txn) |
| 217 | +ahprintf(AH,"BEGIN;\n\n"); |
| 218 | + |
216 | 219 | /* |
217 | 220 | * Establish important parameter values right away. |
218 | 221 | */ |
219 | 222 | _doSetFixedOutputState(AH); |
220 | 223 |
|
221 | 224 | AH->stage=STAGE_PROCESSING; |
222 | 225 |
|
223 | | -if (ropt->single_txn) |
224 | | -ahprintf(AH,"BEGIN;\n\n"); |
225 | | - |
226 | 226 | /* |
227 | 227 | * Drop the items at the start, in reverse order |
228 | 228 | */ |
@@ -376,7 +376,7 @@ RestoreArchive(Archive *AHX, RestoreOptions *ropt) |
376 | 376 | } |
377 | 377 | } |
378 | 378 |
|
379 | | -if (ropt->single_txn) |
| 379 | +if (ropt->single_txn) |
380 | 380 | ahprintf(AH,"COMMIT;\n\n"); |
381 | 381 |
|
382 | 382 | if (AH->public.verbose) |
|