contrib/array_iterator/array_iterator.c won't compile.
Included patches should fix the problem.
--
Tatsuo Ishii

*** pgsql/contrib/array/array_iterator.c~	Fri Jan 22 07:40:16 1999
--- pgsql/contrib/array/array_iterator.c	Tue Mar 16 11:31:40 1999
***************
*** 28,37 ****
  
  #include "array_iterator.h"
  
  array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
  {
  	HeapTuple	typ_tuple;
! 	TypeTupleForm typ_struct;
  	bool		typbyval;
  	int			typlen;
  	func_ptr	proc_fn;
--- 28,38 ----
  
  #include "array_iterator.h"
  
+ static int32
  array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
  {
  	HeapTuple	typ_tuple;
! 	Form_pg_type typ_struct;
  	bool		typbyval;
  	int			typlen;
  	func_ptr	proc_fn;
***************
*** 43,48 ****
--- 44,50 ----
  			   *dim;
  	char	   *p;
  	FmgrInfo finf;    /*Tobias Gabele Jan 18 1999*/
+ 	
  
  	/* Sanity checks */
  	if ((array == (ArrayType *) NULL)
***************
*** 67,73 ****
  		elog(ERROR, "array_iterator: cache lookup failed for type %d", elemtype);
  		return 0;
  	}
! 	typ_struct = (TypeTupleForm) GETSTRUCT(typ_tuple);
  	typlen = typ_struct->typlen;
  	typbyval = typ_struct->typbyval;
  
--- 69,75 ----
  		elog(ERROR, "array_iterator: cache lookup failed for type %d", elemtype);
  		return 0;
  	}
! 	typ_struct = (Form_pg_type) GETSTRUCT(typ_tuple);
  	typlen = typ_struct->typlen;
  	typbyval = typ_struct->typbyval;
  
[srapc451.sra.co.jp]t-ishii{123} 

Tue, 16 Mar 1999 11:45:36 +0900
Tatsuo Ishii <t-ishii@sra.co.jp>
[CURRENT] contrib/array_iterator patch
Applied.


> contrib/array_iterator/array_iterator.c won't compile.
> Included patches should fix the problem.
> --
> Tatsuo Ishii
> 
> *** pgsql/contrib/array/array_iterator.c~	Fri Jan 22 07:40:16 1999
> --- pgsql/contrib/array/array_iterator.c	Tue Mar 16 11:31:40 1999
> ***************
> *** 28,37 ****
>   
>   #include "array_iterator.h"
>   
>   array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
>   {
>   	HeapTuple	typ_tuple;
> ! 	TypeTupleForm typ_struct;
>   	bool		typbyval;
>   	int			typlen;
>   	func_ptr	proc_fn;
> --- 28,38 ----
>   
>   #include "array_iterator.h"
>   
> + static int32
>   array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
>   {
>   	HeapTuple	typ_tuple;
> ! 	Form_pg_type typ_struct;
>   	bool		typbyval;
>   	int			typlen;
>   	func_ptr	proc_fn;
> ***************
> *** 43,48 ****
> --- 44,50 ----
>   			   *dim;
>   	char	   *p;
>   	FmgrInfo finf;    /*Tobias Gabele Jan 18 1999*/
> + 	
>   
>   	/* Sanity checks */
>   	if ((array == (ArrayType *) NULL)
> ***************
> *** 67,73 ****
>   		elog(ERROR, "array_iterator: cache lookup failed for type %d", elemtype);
>   		return 0;
>   	}
> ! 	typ_struct = (TypeTupleForm) GETSTRUCT(typ_tuple);
>   	typlen = typ_struct->typlen;
>   	typbyval = typ_struct->typbyval;
>   
> --- 69,75 ----
>   		elog(ERROR, "array_iterator: cache lookup failed for type %d", elemtype);
>   		return 0;
>   	}
> ! 	typ_struct = (Form_pg_type) GETSTRUCT(typ_tuple);
>   	typlen = typ_struct->typlen;
>   	typbyval = typ_struct->typbyval;
>   
> [srapc451.sra.co.jp]t-ishii{123} 
> 
> 


-- 
  Bruce Momjian                        |  http://www.op.net/~candle
  maillist@candle.pha.pa.us            |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Mon, 15 Mar 1999 22:10:09 -0500 (EST)
Bruce Momjian <maillist@candle.pha.pa.us>
Re: [HACKERS] [CURRENT] contrib/array_iterator patch