| Server IP : 104.21.25.180 / Your IP : 162.159.115.42 Web Server : Apache/2.4.37 System : Linux almalinux.duckdns.org 4.18.0-553.111.1.el8_10.x86_64 #1 SMP Sun Mar 8 20:06:07 EDT 2026 x86_64 User : ricodeal ( 1046) PHP Version : 7.4.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/doc/postgresql-docs/html/ |
Upload File : |
<?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>Chapter 68. BKI Backend Interface</title><link rel="stylesheet" type="text/css" href="stylesheet.css" /><link rev="made" href="[email protected]" /><meta name="generator" content="DocBook XSL Stylesheets Vsnapshot" /><link rel="prev" href="storage-page-layout.html" title="67.6. Database Page Layout" /><link rel="next" href="bki-format.html" title="68.1. BKI File Format" /></head><body><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="5" align="center">Chapter 68. <acronym xmlns="http://www.w3.org/1999/xhtml" class="acronym">BKI</acronym> Backend Interface</th></tr><tr><td width="10%" align="left"><a accesskey="p" href="storage-page-layout.html" title="67.6. Database Page Layout">Prev</a> </td><td width="10%" align="left"><a accesskey="u" href="internals.html" title="Part VII. Internals">Up</a></td><th width="60%" align="center">Part VII. Internals</th><td width="10%" align="right"><a accesskey="h" href="index.html" title="PostgreSQL 10.23 Documentation">Home</a></td><td width="10%" align="right"> <a accesskey="n" href="bki-format.html" title="68.1. BKI File Format">Next</a></td></tr></table><hr></hr></div><div class="chapter" id="BKI"><div class="titlepage"><div><div><h2 class="title">Chapter 68. <acronym class="acronym">BKI</acronym> Backend Interface</h2></div></div></div><div class="toc"><p><strong>Table of Contents</strong></p><dl class="toc"><dt><span class="sect1"><a href="bki-format.html">68.1. <acronym class="acronym">BKI</acronym> File Format</a></span></dt><dt><span class="sect1"><a href="bki-commands.html">68.2. <acronym class="acronym">BKI</acronym> Commands</a></span></dt><dt><span class="sect1"><a href="bki-structure.html">68.3. Structure of the Bootstrap <acronym class="acronym">BKI</acronym> File</a></span></dt><dt><span class="sect1"><a href="bki-example.html">68.4. Example</a></span></dt></dl></div><p> Backend Interface (<acronym class="acronym">BKI</acronym>) files are scripts in a special language that is understood by the <span class="productname">PostgreSQL</span> backend when running in the <span class="quote">“<span class="quote">bootstrap</span>”</span> mode. The bootstrap mode allows system catalogs to be created and filled from scratch, whereas ordinary SQL commands require the catalogs to exist already. <acronym class="acronym">BKI</acronym> files can therefore be used to create the database system in the first place. (And they are probably not useful for anything else.) </p><p> <span class="application">initdb</span> uses a <acronym class="acronym">BKI</acronym> file to do part of its job when creating a new database cluster. The input file used by <span class="application">initdb</span> is created as part of building and installing <span class="productname">PostgreSQL</span> by a program named <code class="filename">genbki.pl</code>, which reads some specially formatted C header files in the <code class="filename">src/include/catalog/</code> directory of the source tree. The created <acronym class="acronym">BKI</acronym> file is called <code class="filename">postgres.bki</code> and is normally installed in the <code class="filename">share</code> subdirectory of the installation tree. </p><p> Related information can be found in the documentation for <span class="application">initdb</span>. </p></div><div xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navfooter"><hr></hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="storage-page-layout.html" title="67.6. Database Page Layout">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="internals.html" title="Part VII. Internals">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="bki-format.html" title="68.1. BKI File Format">Next</a></td></tr><tr><td width="40%" align="left" valign="top">67.6. Database Page Layout </td><td width="20%" align="center"><a accesskey="h" href="index.html" title="PostgreSQL 10.23 Documentation">Home</a></td><td width="40%" align="right" valign="top"> 68.1. <acronym xmlns="http://www.w3.org/1999/xhtml" class="acronym">BKI</acronym> File Format</td></tr></table></div></body></html>