From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Michael Paquier <michael(dot)paquier(at)gmail(dot)com> |
Cc: | Piotr Stefaniak <postgres(at)piotr-stefaniak(dot)me>, PostgreSQL Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: A couple of cosmetic changes around shared memory code |
Date: | 2016-05-17 17:05:38 |
Message-ID: | 1386.1463504738@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Michael Paquier <michael(dot)paquier(at)gmail(dot)com> writes:
> On Tue, May 17, 2016 at 4:40 AM, Piotr Stefaniak
> <postgres(at)piotr-stefaniak(dot)me> wrote:
> - toc_bytes = offsetof(shm_toc, toc_entry) +nentry * sizeof(shm_toc_entry)
> + toc_bytes = offsetof(shm_toc, toc_entry) + nentry * sizeof(shm_toc_entry)
> + allocated_bytes;
> I don't recall the exact reason, but this is intentional style
> (memories from a patchwork with Tom).
Well, it's not so much intentional as that pgindent will make it look like
that no matter what you do --- it's got some weird interaction with
sizeof, offsetof, and typedef names versus operators later on the same
line. I'd call that a pgindent bug myself, but have no particular desire
to try to fix it.
You could possibly make it look nicer by splitting into multiple lines,
but you'll need to try pgindent'ing to see if you've actually improved the
end result at all.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | David Fetter | 2016-05-17 17:15:58 | Re: HeapTupleSatisfiesToast() busted? (was atomic pin/unpin causing errors) |
Previous Message | Jaime Casanova | 2016-05-17 16:43:50 | Re: 10.0 |