From a03c0d93d5a2730f25a3b2738300dacd8ca5e24a Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 30 Dec 2002 18:42:17 +0000 Subject: Code review for CLUSTER ALL patch. Fix bogus locking, incorrect transaction stop/start nesting, other infelicities. --- src/include/commands/cluster.h | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/include/commands/cluster.h') diff --git a/src/include/commands/cluster.h b/src/include/commands/cluster.h index c83db667252..7eb11d60b06 100644 --- a/src/include/commands/cluster.h +++ b/src/include/commands/cluster.h @@ -6,22 +6,19 @@ * Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group * Portions Copyright (c) 1994-5, Regents of the University of California * - * $Id: cluster.h,v 1.17 2002/11/23 04:05:52 momjian Exp $ + * $Id: cluster.h,v 1.18 2002/12/30 18:42:16 tgl Exp $ * *------------------------------------------------------------------------- */ #ifndef CLUSTER_H #define CLUSTER_H -#include -/* - * functions - */ -extern void cluster(ClusterStmt *stmt); +#include "nodes/parsenodes.h" +#include "utils/rel.h" -extern List *get_indexattr_list(Relation OldHeap, Oid OldIndex); -extern void rebuild_rel(Oid tableOid, Oid indexOid, - List *indexes, bool dataCopy); +extern void cluster(ClusterStmt *stmt); + +extern void rebuild_relation(Relation OldHeap, Oid indexOid); #endif /* CLUSTER_H */ -- cgit v1.2.3