Andres Freund <and...@anarazel.de> writes: > That's cool too. Besides processing the .bki files, and there largely > reg*_in, the many restarts are the most expensive parts of initdb.
BTW, in case anyone is doubting it, I did a little bit of "perf" tracing and confirmed Andres' comment here: more than 50% of the runtime of the bootstrap phase is eaten by the pg_proc seqscans performed by regprocin. There's nothing else amounting to more than a few percent, so basically nothing else in bootstrap is worth optimizing before we fix that. regards, tom lane -- Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-hackers