?
Dieses Dokument verwendet PHP-Handbuch für chinesische Websites Freigeben
open命令打開(kāi)的表需要系統(tǒng)事先存在另外一些基本的表 ,在這些表存在并擁有數(shù)據(jù)之前,不能使用open命令。 這些最低限度必須存在的表是 pg_class, pg_attribute, pg_proc, and pg_type。 為了允許這些表自己被填充, 帶bootstrap 選項(xiàng)的create 隱含打開(kāi)所創(chuàng)建的表用于插入數(shù)據(jù)。
同樣, declare index和declare toast 命令也不能在它們所需要的系統(tǒng)表創(chuàng)建并填充之前使用。
因此,postgres.bki文件的結(jié)構(gòu)必須是這樣的:
create bootstrap 其中一個(gè)關(guān)鍵表
insert 數(shù)據(jù),這些數(shù)據(jù)至少描述這些關(guān)鍵表本身
close
重復(fù)創(chuàng)建和填充其它關(guān)鍵表
create (不帶 bootstrap)一個(gè)非關(guān)鍵表
open
insert需要的數(shù)據(jù)
close
重復(fù)創(chuàng)建其它非關(guān)鍵表
定義索引和toast表
build indices
當(dāng)然,肯定還有其它未記錄文檔的順序依賴關(guān)系。