CATALOG VERSION UPDATED:
authorBruce Momjian <[email protected]>
Mon, 15 Apr 2002 23:45:07 +0000 (23:45 +0000)
committerBruce Momjian <[email protected]>
Mon, 15 Apr 2002 23:45:07 +0000 (23:45 +0000)
The indexes on most system catalogs are named with the suffix "_index";
not so with TOAST table indexes, which use "_idx". This trivial patch
changes TOAST table index names to use the "_index" suffix for
consistency.

Neil Conway

src/backend/commands/tablecmds.c
src/include/catalog/catversion.h

index e96f11c8a11b0154b1a20ad975834095e79a05cd..d01320f138918b166f4a795ccd1a1742c9116a2b 100644 (file)
@@ -1505,7 +1505,7 @@ AlterTableCreateToastTable(Oid relOid, bool silent)
         * Create the toast table and its index
         */
        sprintf(toast_relname, "pg_toast_%u", relOid);
-       sprintf(toast_idxname, "pg_toast_%u_idx", relOid);
+       sprintf(toast_idxname, "pg_toast_%u_index", relOid);
 
        /* this is pretty painful...  need a tuple descriptor */
        tupdesc = CreateTemplateTupleDesc(3);
index f15e08e6d3d227e191c54937a40f81498c766ee6..15be07e479be2071f12f61351f7f1354925a3ac6 100644 (file)
@@ -53,6 +53,6 @@
  */
 
 /*                                                     yyyymmddN */
-#define CATALOG_VERSION_NO     200204101
+#define CATALOG_VERSION_NO     200204151
 
 #endif