支援的版本:目前 (17) / 16 / 15 / 14 / 13
開發版本:devel
不支援的版本:12 / 11 / 10 / 9.6 / 9.5 / 9.4 / 9.3 / 9.2 / 9.1 / 9.0 / 8.4 / 8.3 / 8.2 / 8.1

67.5. Bootstrap 的結構BKI檔案 #

在它使用的資料表存在且有要開啟的資料表的項目之前,無法使用 open 命令。(這些最小的資料表是 pg_classpg_attributepg_procpg_type。)為了允許填入這些資料表本身,具有 bootstrap 選項的 create 會隱式地開啟建立的資料表以進行資料插入。

此外,在建立並填入它們需要的系統目錄之前,無法使用 declare indexdeclare toast 命令。

因此,postgres.bki 檔案的結構必須是

  1. create bootstrap 其中一個關鍵資料表

  2. insert 描述至少關鍵資料表的資料

  3. close

  4. 為其他關鍵資料表重複上述步驟。

  5. create(沒有 bootstrap)一個非關鍵資料表

  6. open

  7. insert 想要的資料

  8. close

  9. 為其他非關鍵資料表重複上述步驟。

  10. 定義索引和 toast 資料表。

  11. build indices

毫無疑問,還有其他未記錄的排序依賴關係。

提交更正

如果您在文件中發現任何不正確、與特定功能的經驗不符或需要進一步澄清的地方,請使用 此表格 回報文件問題。