]> begriffs open source - ai-pg/blob - full-docs/txt/bki-structure.txt
Convert HTML docs to more streamlined TXT
[ai-pg] / full-docs / txt / bki-structure.txt
1
2 68.5. Structure of the Bootstrap BKI File #
3
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.
9
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.
12
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
16     3. close
17     4. Repeat for the other critical tables.
18     5. create (without bootstrap) a noncritical table
19     6. open
20     7. insert desired data
21     8. close
22     9. Repeat for the other noncritical tables.
23    10. Define indexes and toast tables.
24    11. build indices
25
26    There are doubtless other, undocumented ordering dependencies.