effective_cache_size calculation overflow

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: effective_cache_size calculation overflow
Date: 2014-01-26 14:53:25
Message-ID: CABUevEzHZXDWdbBuJC7vG9GqGJw3dgyxz0ETD3=CVCBFcCPHdA@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

To test something unrelated, I set my shared_buffers to 7TB on my laptop
today (no, unfortunately I don't have that much RAM).

That leads to the startup error:

FATAL: -536870912 is outside the valid range for parameter
"effective_cache_size" (-1 .. 2147483647)

So clearly there is an overflow somewhere in the calculation of
effective_cache_size, most likely from the fact that it's now dynamically
calculated.

--
Magnus Hagander
Me: http://www.hagander.net/
Work: http://www.redpill-linpro.com/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Florian Pflug 2014-01-26 15:49:46 Re: plpgsql.warn_shadow
Previous Message Florian Pflug 2014-01-26 13:13:03 Re: INTERVAL overflow detection is terribly broken