| From: | Robert Haas <robertmhaas(at)gmail(dot)com> | 
|---|---|
| To: | Aleksander Alekseev <a(dot)alekseev(at)postgrespro(dot)ru> | 
| Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "pgsql-hackers(at)postgresql(dot)org" <pgsql-hackers(at)postgresql(dot)org> | 
| Subject: | Re: Patch: ResourceOwner optimization for tables with many partitions | 
| Date: | 2016-01-27 21:35:43 | 
| Message-ID: | CA+TgmoYwbycDjyzscf0uh-5EaWU0APB48AT6GYs+nESE5XADZg@mail.gmail.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-hackers | 
On Wed, Jan 27, 2016 at 3:57 AM, Aleksander Alekseev
<a(dot)alekseev(at)postgrespro(dot)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
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Fabien COELHO | 2016-01-27 22:07:59 | Re: extend pgbench expressions with functions | 
| Previous Message | Robert Haas | 2016-01-27 21:33:06 | Re: extend pgbench expressions with functions |