Обсуждение: pgsql: Awhile back I added some code to StartupCLOG() to forcibly zero

Поиск
Список
Период
Сортировка

pgsql: Awhile back I added some code to StartupCLOG() to forcibly zero

От
tgl@svr1.postgresql.org (Tom Lane)
Дата:
Log Message:
-----------
Awhile back I added some code to StartupCLOG() to forcibly zero out
the remainder of the current clog page during system startup.  While
this was a good idea, it turns out the code fails if nextXid is
exactly at a page boundary, because we won't have created the "current"
clog page yet in that case.  Since the page will be correctly zeroed
when we execute the first transaction on it, the solution is just to
do nothing when exactly at a page boundary.  Per trouble report from
Dave Hartwig.

Modified Files:
--------------
    pgsql/src/backend/access/transam:
        clog.c (r1.26 -> r1.27)
        (http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/access/transam/clog.c.diff?r1=1.26&r2=1.27)