From f3b421da5f4addc95812b9db05a24972b8fd9739 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Wed, 21 Dec 2016 12:00:00 -0500 Subject: Reorder pg_sequence columns to avoid alignment issue On AIX, doubles are aligned at 4 bytes, but int64 is aligned at 8 bytes. Our code assumes that doubles have alignment that can also be applied to int64, but that fails in this case. One effect is that heap_form_tuple() writes tuples in a different layout than Form_pg_sequence expects. Rather than rewrite the whole alignment code, work around the issue by reordering the columns in pg_sequence so that the first int64 column naturally comes out at an 8-byte boundary. --- doc/src/sgml/catalogs.sgml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/catalogs.sgml b/doc/src/sgml/catalogs.sgml index 7a7bbde390b..493050618df 100644 --- a/doc/src/sgml/catalogs.sgml +++ b/doc/src/sgml/catalogs.sgml @@ -5627,6 +5627,13 @@ The OID of the pg_class entry for this sequence + + seqcycle + bool + + Whether the sequence cycles + + seqstart int8 @@ -5661,13 +5668,6 @@ Cache size of the sequence - - - seqcycle - bool - - Whether the sequence cycles - -- cgit v1.2.3