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

pgsql: Tweak accumArrayResult() to double the size of its working arrays

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Tweak accumArrayResult() to double the size of its working arrays
Date: 2006-11-08 19:24:38
Message-ID: 20061108192438.99FF99FB26B@postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
Tweak accumArrayResult() to double the size of its working arrays when
more space is needed, instead of incrementing by a fixed amount; the old
method wastes lots of space and time when the ultimate size is large.
Per gripe from Tatsuo.

Modified Files:
--------------
    pgsql/src/include/utils:
        array.h (r1.59 -> r1.60)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/include/utils/array.h.diff?r1=1.59&r2=1.60)
    pgsql/src/backend/utils/adt:
        arrayfuncs.c (r1.134 -> r1.135)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/adt/arrayfuncs.c.diff?r1=1.134&r2=1.135)

pgsql-committers by date

Next:From: Tom LaneDate: 2006-11-08 19:27:24
Subject: pgsql: Modify aset.c to track the next intended block allocation size
Previous:From: Tom LaneDate: 2006-11-08 19:22:25
Subject: pgsql: Fix performance issues in replace_text(), replace_text_regexp(),

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