64.3. Structure of the BootstrapBKI File
Theopen
command cannot be used until the tables it uses exist and have entries for the table that is to be opened. (These minimum tables arepg_class
,pg_attribute
,pg_proc
, andpg_type
.) To allow those tables themselves to be filled,create
with thebootstrap
option implicitly opens the created table for data insertion.
Also, thedeclare index
anddeclare toast
commands cannot be used until the system catalogs they need have been created and filled in.
Thus, the structure of thepostgres.bki
file has to be:
create bootstrap
one of the critical tablesinsert
data describing at least the critical tablesclose
Repeat for the other critical tables.
create
(withoutbootstrap
) a noncritical tableopen
insert
desired dataclose
Repeat for the other noncritical tables.
Define indexes and toast tables.
build indices
There are doubtless other, undocumented ordering dependencies.
Prev | Up | Next |
64.2. BKI Commands | Home | 64.4. Example |