summaryrefslogtreecommitdiff
path: root/src/backend/bootstrap
diff options
context:
space:
mode:
authorTom Lane2000-07-04 06:11:54 +0000
committerTom Lane2000-07-04 06:11:54 +0000
commitcdeca5f590cc3c336c9c217831d68a2ca7f15265 (patch)
treef233f7ae62023950d1c169530b83f705c63ceed0 /src/backend/bootstrap
parent9cf327790d978fc4ec6dba1c7f456e0a7596e4e2 (diff)
Make toast-table creation and deletion work somewhat reliably.
Don't go through pg_exec_query_dest(), but directly to the execution routines. Also, extend parameter lists so that there's no need to change the global setting of allowSystemTableMods, a hack that was certain to cause trouble in the event of any error.
Diffstat (limited to 'src/backend/bootstrap')
-rw-r--r--src/backend/bootstrap/bootparse.y9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/bootstrap/bootparse.y b/src/backend/bootstrap/bootparse.y
index 0a6f9d55ace..4c13aafc0eb 100644
--- a/src/backend/bootstrap/bootparse.y
+++ b/src/backend/bootstrap/bootparse.y
@@ -9,7 +9,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.30 2000/06/18 22:43:51 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/backend/bootstrap/bootparse.y,v 1.31 2000/07/04 06:11:22 tgl Exp $
*
*-------------------------------------------------------------------------
*/
@@ -166,7 +166,7 @@ Boot_CreateStmt:
puts("creating bootstrap relation");
tupdesc = CreateTupleDesc(numattr,attrtypes);
reldesc = heap_create(LexIDStr($3), tupdesc,
- false, true);
+ false, true, true);
if (DebugMode)
puts("bootstrap relation created ok");
}
@@ -177,7 +177,10 @@ Boot_CreateStmt:
tupdesc = CreateTupleDesc(numattr,attrtypes);
id = heap_create_with_catalog(LexIDStr($3),
- tupdesc, RELKIND_RELATION, false);
+ tupdesc,
+ RELKIND_RELATION,
+ false,
+ true);
if (!Quiet)
printf("CREATED relation %s with OID %u\n",
LexIDStr($3), id);