mirror of
https://github.com/postgres/postgres.git
synced 2025-06-11 20:28:21 +03:00
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.
This commit is contained in:
@ -5627,6 +5627,13 @@
|
||||
<entry>The OID of the <structname>pg_class</> entry for this sequence</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>seqcycle</structfield></entry>
|
||||
<entry><type>bool</type></entry>
|
||||
<entry></entry>
|
||||
<entry>Whether the sequence cycles</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>seqstart</structfield></entry>
|
||||
<entry><type>int8</type></entry>
|
||||
@ -5661,13 +5668,6 @@
|
||||
<entry></entry>
|
||||
<entry>Cache size of the sequence</entry>
|
||||
</row>
|
||||
|
||||
<row>
|
||||
<entry><structfield>seqcycle</structfield></entry>
|
||||
<entry><type>bool</type></entry>
|
||||
<entry></entry>
|
||||
<entry>Whether the sequence cycles</entry>
|
||||
</row>
|
||||
</tbody>
|
||||
</tgroup>
|
||||
</table>
|
||||
|
Reference in New Issue
Block a user