From 6e38e34d64b5769272e0ab873416aa6c95509b50 Mon Sep 17 00:00:00 2001 From: Tom Lane Date: Mon, 31 Jul 2006 01:16:38 +0000 Subject: Change the bootstrap sequence so that toast tables for system catalogs are created in the bootstrap phase proper, rather than added after-the-fact by initdb. This is cleaner than before because it allows us to retire the undocumented ALTER TABLE ... CREATE TOAST TABLE command, but the real reason I'm doing it is so that toast tables of shared catalogs will now have predetermined OIDs. This will allow a reasonably clean solution to the problem of locking tables before we load their relcache entries, to appear in a forthcoming patch. --- doc/src/sgml/bki.sgml | 32 ++++++++++++++++++++++++++++++-- doc/src/sgml/keywords.sgml | 9 +-------- 2 files changed, 31 insertions(+), 10 deletions(-) (limited to 'doc/src') diff --git a/doc/src/sgml/bki.sgml b/doc/src/sgml/bki.sgml index a08119983a2..ca839e8a40e 100644 --- a/doc/src/sgml/bki.sgml +++ b/doc/src/sgml/bki.sgml @@ -1,4 +1,4 @@ - + <acronym>BKI</acronym> Backend Interface @@ -209,6 +209,28 @@ + + + declare toast + toasttableoid + toastindexoid + on tablename + + + + + Create a TOAST table for the table named + tablename. + The TOAST table is assigned OID + toasttableoid + and its index is assigned OID + toastindexoid. + As with declare index, filling of the index + is postponed. + + + + build indices @@ -235,6 +257,12 @@ the created table for data insertion. + + Also, the declare index and declare toast + commands cannot be used until the system catalogs they need have been + created and filled in. + + Thus, the structure of the postgres.bki file has to be: @@ -286,7 +314,7 @@ - Define indexes. + Define indexes and toast tables. diff --git a/doc/src/sgml/keywords.sgml b/doc/src/sgml/keywords.sgml index 71295125c4f..cf55b830485 100644 --- a/doc/src/sgml/keywords.sgml +++ b/doc/src/sgml/keywords.sgml @@ -1,4 +1,4 @@ - + <acronym>SQL</acronym> Key Words @@ -4013,13 +4013,6 @@ reserved reserved - - TOAST - non-reserved - - - - TOP_LEVEL_COUNT -- cgit v1.2.3