Skip site navigation (1) Skip section navigation (2)

pgsql-server: Arrange to preallocate all required space for the buffer

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql-server: Arrange to preallocate all required space for the buffer
Date: 2004-09-28 20:46:38
Message-ID: 20040928204638.76C1032A053@svr1.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Arrange to preallocate all required space for the buffer and FSM hash
tables in shared memory.  This ensures that overflow of the lock table
creates no long-lasting problems.  Per discussion with Merlin Moncure.

Modified Files:
--------------
    pgsql-server/src/backend/storage/freespace:
        freespace.c (r1.34 -> r1.35)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/storage/freespace/freespace.c.diff?r1=1.34&r2=1.35)
    pgsql-server/src/backend/storage/ipc:
        shmem.c (r1.80 -> r1.81)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/storage/ipc/shmem.c.diff?r1=1.80&r2=1.81)
    pgsql-server/src/backend/storage/lmgr:
        lock.c (r1.140 -> r1.141)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/storage/lmgr/lock.c.diff?r1=1.140&r2=1.141)
    pgsql-server/src/backend/utils/hash:
        dynahash.c (r1.53 -> r1.54)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/backend/utils/hash/dynahash.c.diff?r1=1.53&r2=1.54)
    pgsql-server/src/include/storage:
        shmem.h (r1.42 -> r1.43)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/storage/shmem.h.diff?r1=1.42&r2=1.43)
    pgsql-server/src/include/utils:
        hsearch.h (r1.32 -> r1.33)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/include/utils/hsearch.h.diff?r1=1.32&r2=1.33)

pgsql-committers by date

Next:From: Tom LaneDate: 2004-09-28 21:19:31
Subject: pgsql-server: Adjust obsolete comment about memory needs for lock table.
Previous:From: Tom LaneDate: 2004-09-28 19:35:44
Subject: pgsql-server: Code review for recent dbsize changes.

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group