• Alvaro Herrera's avatar
    Split pgstat file in smaller pieces · 187492b6
    Alvaro Herrera authored
    We now write one file per database and one global file, instead of
    having the whole thing in a single huge file.  This reduces the I/O that
    must be done when partial data is required -- which is all the time,
    because each process only needs information on its own database anyway.
    Also, the autovacuum launcher does not need data about tables and
    functions in each database; having the global stats for all DBs is
    enough.
    
    Catalog version bumped because we have a new subdir under PGDATA.
    
    Author: Tomas Vondra.  Some rework by Álvaro
    Testing by Jeff Janes
    Other discussion by Heikki Linnakangas, Tom Lane.
    187492b6
initdb.c 88.9 KB