pgsql: Limit NBuffers and some related values to INT_MAX / BLCKSZ, to

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Limit NBuffers and some related values to INT_MAX / BLCKSZ, to
Date: 2004-10-16 19:08:39
Message-ID: 20041016190839.2D7F232A11B@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Limit NBuffers and some related values to INT_MAX / BLCKSZ, to prevent
arithmetic overflow during initial sizing calculations. This is not
water-tight but it should avoid the grossest sorts of failures.

Modified Files:
--------------
pgsql/src/backend/utils/misc:
guc.c (r1.243 -> r1.244)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc.c.diff?r1=1.243&r2=1.244)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-10-16 20:10:59 pgsql: Generate the various .def files for libpq DLLs from a single list
Previous Message Tom Lane 2004-10-16 18:57:26 pgsql: Give the ResourceOwner mechanism full responsibility for