? config.log ? config.cache ? config.status ? GNUmakefile ? src/GNUmakefile ? src/Makefile.custom ? src/Makefile.global ? src/log ? src/crtags ? src/backend/postgres ? src/backend/catalog/global.bki ? src/backend/catalog/global.description ? src/backend/catalog/template1.bki ? src/backend/catalog/template1.description ? src/backend/port/Makefile ? src/bin/initdb/initdb ? src/bin/initlocation/initlocation ? src/bin/ipcclean/ipcclean ? src/bin/pg_ctl/pg_ctl ? src/bin/pg_dump/pg_dump ? src/bin/pg_dump/pg_restore ? src/bin/pg_dump/pg_dumpall ? src/bin/pg_id/pg_id ? src/bin/pg_passwd/pg_passwd ? src/bin/pgaccess/pgaccess ? src/bin/pgtclsh/Makefile.tkdefs ? src/bin/pgtclsh/Makefile.tcldefs ? src/bin/pgtclsh/pgtclsh ? src/bin/pgtclsh/pgtksh ? src/bin/psql/psql ? src/bin/scripts/createlang ? src/include/config.h ? src/interfaces/ecpg/lib/libecpg.so.3.1.1 ? src/interfaces/ecpg/preproc/ecpg ? src/interfaces/libpgeasy/libpgeasy.so.2.1 ? src/interfaces/libpgtcl/libpgtcl.so.2.1 ? src/interfaces/libpq/libpq.so.2.1 ? src/pl/plpgsql/src/libplpgsql.so.1.0 ? src/pl/tcl/Makefile.tcldefs ? src/test/regress/GNUmakefile Index: src/backend/utils/cache/temprel.c =================================================================== RCS file: /home/projects/pgsql/cvsroot/pgsql/src/backend/utils/cache/temprel.c,v retrieving revision 1.26 diff -c -r1.26 temprel.c *** src/backend/utils/cache/temprel.c 2000/07/04 06:11:47 1.26 --- src/backend/utils/cache/temprel.c 2000/07/11 15:02:48 *************** *** 107,112 **** --- 107,113 ---- next = lnext(l); /* do this first, l is deallocated */ + /* Indexes are dropped during heap drop */ if (temp_rel->relkind != RELKIND_INDEX) { char relname[NAMEDATALEN]; *************** *** 115,122 **** strcpy(relname, temp_rel->user_relname); heap_drop_with_catalog(relname, allowSystemTableMods); } - else - index_drop(temp_rel->relid); l = next; } --- 116,121 ---- *************** *** 235,241 **** * * We also reject an attempt to rename a normal table to a name in use * as a temp table name. That would fail later on anyway when rename.c ! * looks for a rename conflict, but we can give a more specific error * message for the problem here. * * It might seem that we need to check for attempts to rename the physical --- 234,240 ---- * * We also reject an attempt to rename a normal table to a name in use * as a temp table name. That would fail later on anyway when rename.c ! * looks for a rename conflict, but we can give a more specific error * message for the problem here. * * It might seem that we need to check for attempts to rename the physical