documentation inconsistent re: alignment - Mailing list pgsql-hackers

From Chapman Flack
Subject documentation inconsistent re: alignment
Date
Msg-id 5D915938.1020804@anastigmatix.net
Whole thread Raw
Responses Re: documentation inconsistent re: alignment
List 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




pgsql-hackers by date:

Previous
From: Michael Paquier
Date:
Subject: Re: [DOC] Document concurrent index builds waiting on each other
Next
From: Michael Paquier
Date:
Subject: Re: Hooks for session start and end, take two