From 6cfa6cb95eb65badf5c02d9b7214ae0a2301a68f Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 10 Jan 1998 05:19:22 +0000 Subject: Fix CLUSTER. --- src/backend/commands/cluster.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/backend/commands/cluster.c') diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index b77b1780f3f..9b2df76761e 100644 --- a/src/backend/commands/cluster.c +++ b/src/backend/commands/cluster.c @@ -14,7 +14,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.21 1998/01/05 16:38:42 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.22 1998/01/10 05:19:03 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -177,6 +177,9 @@ cluster(char oldrelname[], char oldindexname[]) /* Destroy old heap (along with its index) and rename new. */ heap_destroy_with_catalog(oldrelname); + CommitTransactionCommand(); + StartTransactionCommand(); + renamerel(NewHeapName, saveoldrelname); TypeRename(NewHeapName, saveoldrelname); -- cgit v1.2.3