From: | Andres Freund <andres(at)2ndquadrant(dot)com> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | David Rowley <dgrowleyml(at)gmail(dot)com>, PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: space reserved for WAL record does not match what was written: panic on windows |
Date: | 2013-10-08 22:24:59 |
Message-ID: | 20131008222459.GD3718183@alap2.anarazel.de |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-www |
On 2013-10-08 12:26:17 -0400, Robert Haas wrote:
> On Mon, Oct 7, 2013 at 4:47 PM, Andres Freund <andres(at)2ndquadrant(dot)com> wrote:
> > So I guess it's either a separate macro, or we rewrite that piece of
> > code to work slightly differently and work directly on the lenght or
> > such.
> >
> > Maybe we should add a StaticAssert ensuring the TYPEALIGN macro only
> > gets passed 32bit types?
>
> I think having two macros that behave identically on all platforms
> anyone cares about[1] but which can cause difficult-to-find
> corner-case-bugs on other platforms is just a recipe for disaster. I
> pledge to screw that up at least once.
Do you have a better alternative? Making the computation unconditionally
64bit will have a runtime overhead and adding a StaticAssert in the
existing macro doesn't work because we use it in array sizes where gcc
balks.
We could try using inline functions, but that's not going to be pretty
either.
I don't really see that many further usecases that will align 64bit
values on 32bit platforms, so I think we're ok for now.
Greetings,
Andres Freund
--
Andres Freund http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Ian Lawrence Barwick | 2013-10-08 22:47:17 | Re: Patch: FORCE_NULL option for copy COPY in CSV mode |
Previous Message | Kevin Grittner | 2013-10-08 22:01:26 | Re: drop-index-concurrently-1 on master fails at serializable |
From | Date | Subject | |
---|---|---|---|
Next Message | David Rowley | 2013-10-09 04:58:31 | Re: space reserved for WAL record does not match what was written: panic on windows |
Previous Message | Kevin Grittner | 2013-10-08 20:23:45 | Re: Fwd: Undelivered Mail Returned to Sender |