From: Bruce Momjian Date: Mon, 15 Apr 2002 23:45:07 +0000 (+0000) Subject: CATALOG VERSION UPDATED: X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=fb7f60cdcd558979f23fa23a4ffbb0e9dc022648;p=users%2Fbernd%2Fpostgres.git CATALOG VERSION UPDATED: 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 --- diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index e96f11c8a1..d01320f138 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -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); diff --git a/src/include/catalog/catversion.h b/src/include/catalog/catversion.h index f15e08e6d3..15be07e479 100644 --- a/src/include/catalog/catversion.h +++ b/src/include/catalog/catversion.h @@ -53,6 +53,6 @@ */ /* yyyymmddN */ -#define CATALOG_VERSION_NO 200204101 +#define CATALOG_VERSION_NO 200204151 #endif