Simplify the bootstrap (BKI) code by getting rid of a useless table of all
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Sep 2009 01:32:11 +0000 (01:32 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 27 Sep 2009 01:32:11 +0000 (01:32 +0000)
commit8f15815ac356c1cc0a72f84638b8741fa6553990
treee6afe8513f5ab433a17f9466d44a517fd87aae79
parent914bc4d986dba4b580af671bfe5f3ef146818c63
Simplify the bootstrap (BKI) code by getting rid of a useless table of all
the strings seen during the bootstrap run.  There might have been some
actual point to doing that, many years ago, but as far as I can see the only
value now is to conserve a bit of memory.  Even if we cared about wasting
a megabyte or so during the initdb run, it'd be far more effective to
arrange to release memory at the end of each BKI command, instead of
intentionally hanging onto strings that might never be used again.
Not maintaining the table probably makes it faster too; but the main point
of this patch is to get rid of a couple hundred lines of unnecessary and
rather crufty code.
src/backend/bootstrap/bootparse.y
src/backend/bootstrap/bootscanner.l
src/backend/bootstrap/bootstrap.c
src/include/bootstrap/bootstrap.h