Re: Patch: ResourceOwner optimization for tables with many partitions - Mailing list pgsql-hackers

From Robert Haas
Subject Re: Patch: ResourceOwner optimization for tables with many partitions
Date
Msg-id CA+TgmoYwbycDjyzscf0uh-5EaWU0APB48AT6GYs+nESE5XADZg@mail.gmail.com
Whole thread Raw
In response to Re: Patch: ResourceOwner optimization for tables with many partitions  (Aleksander Alekseev <a.alekseev@postgrespro.ru>)
List pgsql-hackers
On Wed, Jan 27, 2016 at 3:57 AM, Aleksander Alekseev
<a.alekseev@postgrespro.ru> wrote:
> I'm a bit concerned regarding assumption that sizeof int never exceeds 4
> bytes. While this could be true today for most C compilers, standard
> [1][2] doesn't guarantee that. Perhaps we should add something like:
>
> StaticAssertStmt(sizeof(int) <= sizeof(int32),
>     "int size exceeds int32 size");

I suspect that if this ever failed to be true, resowner.c would not be
the only thing having problems.

-- 
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: extend pgbench expressions with functions
Next
From: Fabien COELHO
Date:
Subject: Re: extend pgbench expressions with functions