ok

Mini Shell

Direktori : /opt/alt/postgresql11/usr/share/doc/alt-postgresql11-9.2.24/html/
Upload File :
Current File : //opt/alt/postgresql11/usr/share/doc/alt-postgresql11-9.2.24/html/bki-structure.html

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>Structure of the Bootstrap BKI File</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REV="MADE"
HREF="mailto:pgsql-docs@postgresql.org"><LINK
REL="HOME"
TITLE="PostgreSQL 9.2.24 Documentation"
HREF="index.html"><LINK
REL="UP"
TITLE="BKI Backend Interface"
HREF="bki.html"><LINK
REL="PREVIOUS"
TITLE="BKI Commands"
HREF="bki-commands.html"><LINK
REL="NEXT"
TITLE="Example"
HREF="bki-example.html"><LINK
REL="STYLESHEET"
TYPE="text/css"
HREF="stylesheet.css"><META
HTTP-EQUIV="Content-Type"
CONTENT="text/html; charset=ISO-8859-1"><META
NAME="creation"
CONTENT="2017-11-06T22:43:11"></HEAD
><BODY
CLASS="SECT1"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="5"
ALIGN="center"
VALIGN="bottom"
><A
HREF="index.html"
>PostgreSQL 9.2.24 Documentation</A
></TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
TITLE="BKI Commands"
HREF="bki-commands.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="top"
><A
HREF="bki.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="60%"
ALIGN="center"
VALIGN="bottom"
>Chapter 57. <ACRONYM
CLASS="ACRONYM"
>BKI</ACRONYM
> Backend Interface</TD
><TD
WIDTH="20%"
ALIGN="right"
VALIGN="top"
><A
TITLE="Example"
HREF="bki-example.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="BKI-STRUCTURE"
>57.3. Structure of the Bootstrap <ACRONYM
CLASS="ACRONYM"
>BKI</ACRONYM
> File</A
></H1
><P
>   The <TT
CLASS="LITERAL"
>open</TT
> 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 <TT
CLASS="STRUCTNAME"
>pg_class</TT
>,
   <TT
CLASS="STRUCTNAME"
>pg_attribute</TT
>, <TT
CLASS="STRUCTNAME"
>pg_proc</TT
>, and
   <TT
CLASS="STRUCTNAME"
>pg_type</TT
>.)   To allow those tables themselves to be filled,
   <TT
CLASS="LITERAL"
>create</TT
> with the <TT
CLASS="LITERAL"
>bootstrap</TT
> option implicitly opens
   the created table for data insertion.
  </P
><P
>   Also, the <TT
CLASS="LITERAL"
>declare index</TT
> and <TT
CLASS="LITERAL"
>declare toast</TT
>
   commands cannot be used until the system catalogs they need have been
   created and filled in.
  </P
><P
>   Thus, the structure of the <TT
CLASS="FILENAME"
>postgres.bki</TT
> file has to
   be:
   <P
></P
></P><OL
TYPE="1"
><LI
><P
>      <TT
CLASS="LITERAL"
>create bootstrap</TT
> one of the critical tables
     </P
></LI
><LI
><P
>      <TT
CLASS="LITERAL"
>insert</TT
> data describing at least the critical tables
     </P
></LI
><LI
><P
>      <TT
CLASS="LITERAL"
>close</TT
>
     </P
></LI
><LI
><P
>      Repeat for the other critical tables.
     </P
></LI
><LI
><P
>      <TT
CLASS="LITERAL"
>create</TT
> (without <TT
CLASS="LITERAL"
>bootstrap</TT
>) a noncritical table
     </P
></LI
><LI
><P
>      <TT
CLASS="LITERAL"
>open</TT
>
     </P
></LI
><LI
><P
>      <TT
CLASS="LITERAL"
>insert</TT
> desired data
     </P
></LI
><LI
><P
>      <TT
CLASS="LITERAL"
>close</TT
>
     </P
></LI
><LI
><P
>      Repeat for the other noncritical tables.
     </P
></LI
><LI
><P
>      Define indexes and toast tables.
     </P
></LI
><LI
><P
>      <TT
CLASS="LITERAL"
>build indices</TT
>
     </P
></LI
></OL
><P>
  </P
><P
>   There are doubtless other, undocumented ordering dependencies.
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="bki-commands.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="bki-example.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><ACRONYM
CLASS="ACRONYM"
>BKI</ACRONYM
> Commands</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="bki.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Example</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>

Zerion Mini Shell 1.0