Re: Re: Call for platforms

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: "Mark Knox" <segfault@hardline.org>
Cc: pgsql-hackers@postgresql.org
Date: 2001-03-28T05:27:51Z
Lists: pgsql-hackers
"Mark Knox" <segfault@hardline.org> writes:
>  {
>  	BlockIdData ip_blkid;
>  	OffsetNumber ip_posid;
> +#ifdef __arm__
> +} __attribute__((packed)) ItemPointerData;
> +#else
>  }
> +#endif

That would fix it for ARM but not for anyplace else with similar
alignment behavior.  Would you try this patch instead to see what
happens?

			regards, tom lane


*** src/backend/catalog/heap.c.orig	Thu Mar 22 09:50:36 2001
--- src/backend/catalog/heap.c	Wed Mar 28 00:24:45 2001
***************
*** 103,109 ****
   */
  
  static FormData_pg_attribute a1 = {
! 	0xffffffff, {"ctid"}, TIDOID, 0, sizeof(ItemPointerData),
  	SelfItemPointerAttributeNumber, 0, -1, -1, '\0', 'p', '\0', 'i', '\0', '\0'
  };
  
--- 103,109 ----
   */
  
  static FormData_pg_attribute a1 = {
! 	0xffffffff, {"ctid"}, TIDOID, 0, SizeOfIptrData,
  	SelfItemPointerAttributeNumber, 0, -1, -1, '\0', 'p', '\0', 'i', '\0', '\0'
  };