diff options
Diffstat (limited to 'src/backend/commands')
-rw-r--r-- | src/backend/commands/dbcommands.c | 5 | ||||
-rw-r--r-- | src/backend/commands/vacuum.c | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index d68033d8975..802e6867015 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.62 2000/10/22 17:55:36 pjw Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/dbcommands.c,v 1.63 2000/10/28 16:20:54 vadim Exp $ * *------------------------------------------------------------------------- */ @@ -193,6 +193,9 @@ createdb(const char *dbname, const char *dbpath, int encoding) elog(ERROR, "CREATE DATABASE: Could not initialize database directory. Delete failed as well"); } +#ifdef XLOG + BufferSync(); +#endif } diff --git a/src/backend/commands/vacuum.c b/src/backend/commands/vacuum.c index 0905f60b807..3976cb1ab50 100644 --- a/src/backend/commands/vacuum.c +++ b/src/backend/commands/vacuum.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.170 2000/10/24 09:56:15 vadim Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.171 2000/10/28 16:20:54 vadim Exp $ * *------------------------------------------------------------------------- @@ -1787,7 +1787,9 @@ failed to add item with len = %u to page %u (free space %u, nusd %u, noff %u)", if (num_moved > 0) { - +#ifdef XLOG + RecordTransactionCommit(); +#else /* * We have to commit our tuple' movings before we'll truncate * relation, but we shouldn't lose our locks. And so - quick hack: @@ -1797,6 +1799,7 @@ failed to add item with len = %u to page %u (free space %u, nusd %u, noff %u)", FlushBufferPool(); TransactionIdCommit(myXID); FlushBufferPool(); +#endif } /* |