Commit 8f7756d7 authored by Bruce Momjian's avatar Bruce Momjian

palloc() finfo memory. From Kurt.

parent adc98c0b
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* *
* *
* IDENTIFICATION * 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) ...@@ -297,8 +297,9 @@ copy_index(Oid OIDOldIndex, Oid OIDNewHeap)
* component to pass it to the defining procedure. * component to pass it to the defining procedure.
*/ */
if (Old_pg_index_Form->indproc != InvalidOid) { if (Old_pg_index_Form->indproc != InvalidOid) {
FIgetnArgs(&finfo) = natts; finfo = (FuncIndexInfo *) palloc(sizeof(FuncIndexInfo));
FIgetProcOid(&finfo) = Old_pg_index_Form->indproc; FIgetnArgs(finfo) = natts;
FIgetProcOid(finfo) = Old_pg_index_Form->indproc;
pg_proc_Tuple = pg_proc_Tuple =
SearchSysCacheTuple(PROOID, SearchSysCacheTuple(PROOID,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment