documentation inconsistent re: alignment

From: Chapman Flack <chap(at)anastigmatix(dot)net>
To: PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: documentation inconsistent re: alignment
Date: 2019-09-30 01:24:08
Message-ID: 5D915938.1020804@anastigmatix.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hi,

The documentation for CREATE TYPE has this to say about alignment:

"The alignment parameter specifies the storage alignment required for the
data type. The allowed values equate to alignment on 1, 2, 4, or 8 byte
boundaries."

... while the documentation for pg_type has:

"c = char alignment, i.e., no alignment needed.
s = short alignment (2 bytes on most machines).
i = int alignment (4 bytes on most machines).
d = double alignment (8 bytes on many machines, but by no means all)."

so, in 2019, are the alignments weaselly and variable, or are they 1,2,4,8?

Regards,
-Chap

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2019-09-30 01:29:41 Re: Hooks for session start and end, take two
Previous Message Michael Paquier 2019-09-30 01:24:06 Re: [DOC] Document concurrent index builds waiting on each other