2 68.5. Structure of the Bootstrap BKI File #
4 The open command cannot be used until the tables it uses exist and have
5 entries for the table that is to be opened. (These minimum tables are
6 pg_class, pg_attribute, pg_proc, and pg_type.) To allow those tables
7 themselves to be filled, create with the bootstrap option implicitly
8 opens the created table for data insertion.
10 Also, the declare index and declare toast commands cannot be used until
11 the system catalogs they need have been created and filled in.
13 Thus, the structure of the postgres.bki file has to be:
14 1. create bootstrap one of the critical tables
15 2. insert data describing at least the critical tables
17 4. Repeat for the other critical tables.
18 5. create (without bootstrap) a noncritical table
20 7. insert desired data
22 9. Repeat for the other noncritical tables.
23 10. Define indexes and toast tables.
26 There are doubtless other, undocumented ordering dependencies.