orafce - orafce: Rewrite defragmentation() function in a more readable

From: hlinnaka(at)pgfoundry(dot)org (User Hlinnaka)
To: pgsql-committers(at)postgresql(dot)org
Subject: orafce - orafce: Rewrite defragmentation() function in a more readable
Date: 2010-05-11 10:48:34
Message-ID: 20100511104834.BEDD910715B2@pgfoundry.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
Rewrite defragmentation() function in a more readable way. The logic is
still the same, it first sorts the array and then moves slots and
merges adjacent unused slots. This should also fix bug 1010784, I'm not
100% clear what the bug was, but apparently the old defragmentation()
managed to screw up the list_c counter in some cases.

Modified Files:
--------------
orafce:
shmmc.c (r1.16 -> r1.17)
(http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/orafce/orafce/shmmc.c?r1=1.16&r2=1.17)

Browse pgsql-committers by date

  From Date Subject
Next Message User Bmomjian 2010-05-11 14:11:06 pg-migrator - pg_migrator: Stamp 8.4.17, which removes 8.5/9.0 support
Previous Message Takahiro Itagaki 2010-05-11 04:57:51 pgsql: Set per-function GUC settings during validating the function.