]> granicus.if.org Git - postgresql/commit
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)
commit12d8fae4cd2c460a281c946c49629da1136ead08
tree1b2f0d1b7f497c34900399eba9811d5baa7a387b
parent23cf415a6556b3681a22a3b517893603f6e556f7
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