diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:46:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-16 19:46:48 +0000 |
commit | 311bcfc6b3acdd6fd152798c7f287ddf74fa2a98 (patch) | |
tree | 0ec307299b1dada3701e42f4ca6eda57d708261e /doc/src/sgml/html/bki-structure.html | |
parent | Initial commit. (diff) | |
download | postgresql-15-upstream.tar.xz postgresql-15-upstream.zip |
Adding upstream version 15.4.upstream/15.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'doc/src/sgml/html/bki-structure.html')
-rw-r--r-- | doc/src/sgml/html/bki-structure.html | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/src/sgml/html/bki-structure.html b/doc/src/sgml/html/bki-structure.html new file mode 100644 index 0000000..9e36242 --- /dev/null +++ b/doc/src/sgml/html/bki-structure.html @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>74.5. Structure of the Bootstrap BKI File</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="pgsql-docs@lists.postgresql.org" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="bki-commands.html" title="74.4. BKI Commands" /><link rel="next" href="bki-example.html" title="74.6. BKI Example" /></head><body id="docContent" class="container-fluid col-10"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">74.5. Structure of the Bootstrap <acronym class="acronym">BKI</acronym> File</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="bki-commands.html" title="74.4. BKI Commands">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="bki.html" title="Chapter 74. System Catalog Declarations and Initial Contents">Up</a></td><th width="60%" align="center">Chapter 74. System Catalog Declarations and Initial Contents</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 15.4 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="bki-example.html" title="74.6. BKI Example">Next</a></td></tr></table><hr /></div><div class="sect1" id="BKI-STRUCTURE"><div class="titlepage"><div><div><h2 class="title" style="clear: both">74.5. Structure of the Bootstrap <acronym class="acronym">BKI</acronym> File</h2></div></div></div><p> + The <code class="literal">open</code> command cannot be used until the tables it uses + exist and have entries for the table that is to be opened. + (These minimum tables are <code class="structname">pg_class</code>, + <code class="structname">pg_attribute</code>, <code class="structname">pg_proc</code>, and + <code class="structname">pg_type</code>.) To allow those tables themselves to be filled, + <code class="literal">create</code> with the <code class="literal">bootstrap</code> option implicitly opens + the created table for data insertion. + </p><p> + Also, the <code class="literal">declare index</code> and <code class="literal">declare toast</code> + commands cannot be used until the system catalogs they need have been + created and filled in. + </p><p> + Thus, the structure of the <code class="filename">postgres.bki</code> file has to + be: + </p><div class="orderedlist"><ol class="orderedlist" type="1"><li class="listitem"><p> + <code class="literal">create bootstrap</code> one of the critical tables + </p></li><li class="listitem"><p> + <code class="literal">insert</code> data describing at least the critical tables + </p></li><li class="listitem"><p> + <code class="literal">close</code> + </p></li><li class="listitem"><p> + Repeat for the other critical tables. + </p></li><li class="listitem"><p> + <code class="literal">create</code> (without <code class="literal">bootstrap</code>) a noncritical table + </p></li><li class="listitem"><p> + <code class="literal">open</code> + </p></li><li class="listitem"><p> + <code class="literal">insert</code> desired data + </p></li><li class="listitem"><p> + <code class="literal">close</code> + </p></li><li class="listitem"><p> + Repeat for the other noncritical tables. + </p></li><li class="listitem"><p> + Define indexes and toast tables. + </p></li><li class="listitem"><p> + <code class="literal">build indices</code> + </p></li></ol></div><p> + </p><p> + There are doubtless other, undocumented ordering dependencies. + </p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="bki-commands.html" title="74.4. BKI Commands">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="bki.html" title="Chapter 74. System Catalog Declarations and Initial Contents">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bki-example.html" title="74.6. BKI Example">Next</a></td></tr><tr><td width="40%" align="left" valign="top">74.4. <acronym class="acronym">BKI</acronym> Commands </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 15.4 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 74.6. BKI Example</td></tr></table></div></body></html>
\ No newline at end of file |