• T
    Several changes here, not very related but touching some of the same files. · e812458b
    Tom Lane 提交于
    * Buffer refcount cleanup (per my "progress report" to pghackers, 9/22).
    * Add links to backend PROC structs to sinval's array of per-backend info,
    and use these links for routines that need to check the state of all
    backends (rather than the slow, complicated search of the ShmemIndex
    hashtable that was used before).  Add databaseOID to PROC structs.
    * Use this to implement an interlock that prevents DESTROY DATABASE of
    a database containing running backends.  (It's a little tricky to prevent
    a concurrently-starting backend from getting in there, since the new
    backend is not able to lock anything at the time it tries to look up
    its database in pg_database.  My solution is to recheck that the DB is
    OK at the end of InitPostgres.  It may not be a 100% solution, but it's
    a lot better than no interlock at all...)
    * In ALTER TABLE RENAME, flush buffers for the relation before doing the
    rename of the physical files, to ensure we don't get failures later from
    mdblindwrt().
    * Update TRUNCATE patch so that it actually compiles against current
    sources :-(.
    You should do "make clean all" after pulling these changes.
    e812458b
nodeAppend.c 13.7 KB