Chapter 68. BKI Backend Interface | ||||
---|---|---|---|---|
Prev | Up | Part VII. Internals | Home | Next |
Chapter 68. BKI Backend Interface
Table of Contents
Backend Interface (BKI) files are scripts in a special language that is understood by thePostgreSQL backend when running in the“bootstrap” mode. The bootstrap mode allows system catalogs to be created and filled from scratch, whereas ordinary SQL commands require the catalogs to exist already.BKI files can therefore be used to create the database system in the first place. (And they are probably not useful for anything else.) initdb uses aBKI file to do part of its job when creating a new database cluster. The input file used byinitdb is created as part of building and installingPostgreSQL by a program named Related information can be found in the documentation forinitdb.genbki.pl
, which reads some specially formatted C header files in thesrc/include/catalog/
directory of the source tree. The createdBKI file is calledpostgres.bki
and is normally installed in theshare
subdirectory of the installation tree.
Prev | Up | Next |
67.6. Database Page Layout | Home | 68.1. BKI File Format |