Index: src/backend/parser/analyze.c =================================================================== RCS file: /cvsroot/pgsql/src/backend/parser/analyze.c,v retrieving revision 1.217 diff -c -r1.217 analyze.c *** src/backend/parser/analyze.c 6 Mar 2002 06:09:51 -0000 1.217 --- src/backend/parser/analyze.c 8 Mar 2002 16:25:59 -0000 *************** *** 16,21 **** --- 16,22 ---- #include "access/heapam.h" #include "catalog/catname.h" #include "catalog/heap.h" + #include "catalog/index.h" #include "catalog/pg_index.h" #include "catalog/pg_type.h" #include "nodes/makefuncs.h" *************** *** 1049,1055 **** index->idxname = NULL; /* will set it later */ index->relname = cxt->relname; ! index->accessMethod = "btree"; index->indexParams = NIL; index->whereClause = NULL; --- 1050,1056 ---- index->idxname = NULL; /* will set it later */ index->relname = cxt->relname; ! index->accessMethod = DEFAULT_INDEX_TYPE; index->indexParams = NIL; index->whereClause = NULL; Index: src/backend/parser/gram.y =================================================================== RCS file: /cvsroot/pgsql/src/backend/parser/gram.y,v retrieving revision 2.287 diff -c -r2.287 gram.y *** src/backend/parser/gram.y 7 Mar 2002 16:35:35 -0000 2.287 --- src/backend/parser/gram.y 8 Mar 2002 16:26:03 -0000 *************** *** 51,56 **** --- 51,57 ---- #include #include "access/htup.h" + #include "catalog/index.h" #include "catalog/pg_type.h" #include "nodes/params.h" #include "nodes/parsenodes.h" *************** *** 2539,2545 **** ; access_method_clause: USING access_method { $$ = $2; } ! | /*EMPTY*/ { $$ = "btree"; } ; index_params: index_list { $$ = $1; } --- 2540,2547 ---- ; access_method_clause: USING access_method { $$ = $2; } ! /* If btree changes as our default, update pg_get_indexdef() */ ! | /*EMPTY*/ { $$ = DEFAULT_INDEX_TYPE; } ; index_params: index_list { $$ = $1; } Index: src/include/catalog/index.h =================================================================== RCS file: /cvsroot/pgsql/src/include/catalog/index.h,v retrieving revision 1.44 diff -c -r1.44 index.h *** src/include/catalog/index.h 19 Feb 2002 20:11:19 -0000 1.44 --- src/include/catalog/index.h 8 Mar 2002 16:26:12 -0000 *************** *** 18,23 **** --- 18,24 ---- #include "catalog/pg_index.h" #include "nodes/execnodes.h" + #define DEFAULT_INDEX_TYPE "btree" /* Typedef for callback function for IndexBuildHeapScan */ typedef void (*IndexBuildCallback) (Relation index,