Skip to content

Commit 9aa7e89

Browse files
committed
Ok. I found an align problem in lobj that might not appear other than
Solaris/sparc. Please apply included patches to src/backend/storage/large_object/inv_api.c and try again. (These are Tatsuo Ishii
1 parent bcfdc9d commit 9aa7e89

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/storage/large_object/inv_api.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.49 1999/02/13 23:18:20 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/large_object/inv_api.c,v 1.50 1999/02/22 16:46:43 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -998,10 +998,11 @@ inv_newtuple(LargeObjectDesc *obj_desc,
998998

999999
/* compute tuple size -- no nulls */
10001000
hoff = offsetof(HeapTupleHeaderData, t_bits);
1001+
hoff = DOUBLEALIGN(hoff);
10011002

10021003
/* add in olastbyte, varlena.vl_len, varlena.vl_dat */
10031004
tupsize = hoff + (2 * sizeof(int32)) + nwrite;
1004-
tupsize = LONGALIGN(tupsize);
1005+
tupsize = DOUBLEALIGN(tupsize);
10051006

10061007
/*
10071008
* Allocate the tuple on the page, violating the page abstraction.

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy