From 8f7756d7968383a1a8274c860e971706ea972996 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 26 Sep 1996 16:29:05 +0000 Subject: [PATCH] palloc() finfo memory. From Kurt. --- src/backend/commands/cluster.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/backend/commands/cluster.c b/src/backend/commands/cluster.c index f3cf03286d..40625f0e55 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.5 1996/09/26 15:43:35 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/cluster.c,v 1.6 1996/09/26 16:29:05 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -297,8 +297,9 @@ copy_index(Oid OIDOldIndex, Oid OIDNewHeap) * component to pass it to the defining procedure. */ if (Old_pg_index_Form->indproc != InvalidOid) { - FIgetnArgs(&finfo) = natts; - FIgetProcOid(&finfo) = Old_pg_index_Form->indproc; + finfo = (FuncIndexInfo *) palloc(sizeof(FuncIndexInfo)); + FIgetnArgs(finfo) = natts; + FIgetProcOid(finfo) = Old_pg_index_Form->indproc; pg_proc_Tuple = SearchSysCacheTuple(PROOID, -- 2.40.0