| From: | Andres Freund <andres(at)anarazel(dot)de> |
|---|---|
| To: | James Coleman <jtc331(at)gmail(dot)com> |
| Cc: | Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Add last commit LSN to pg_last_committed_xact() |
| Date: | 2022-01-29 00:36:32 |
| Message-ID: | 20220129003632.3fnmdmvnzunajngq@alap3.anarazel.de |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
Hi,
On 2022-01-28 18:43:57 -0500, James Coleman wrote:
> Alternatively I see pg_attribute_aligned, but that's not defined
> (AFAICT) on clang, for example, so I'm not sure that'd be acceptable?
clang should have it (it defines __GNUC__). The problem would be msvc, I
think. Not sure if there's a way to get to a common way of defining it between
gcc-like compilers and msvc (the rest is niche enough that we don't need to
care about the efficiency I think).
> Is there an approach I'm missing? Or does one of these seem reasonable?
I'd probably just slap a char *pad[PG_CACHELINE_SIZE] in there if the above
can't be made work.
Greetings,
Andres Freund
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Andres Freund | 2022-01-29 00:47:19 | Re: Add last commit LSN to pg_last_committed_xact() |
| Previous Message | Andres Freund | 2022-01-29 00:31:10 | Re: row filtering for logical replication |