diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-04-15 23:45:07 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-04-15 23:45:07 +0000 |
commit | bbae09c2cb665a37380767ece239da72e5885f98 (patch) | |
tree | da61ae22afe3cd5470d0da4e3b8c199fcd207eb2 /src/backend/commands/tablecmds.c | |
parent | 2036b3fc597e4e39b87a185a60e51b2467d50783 (diff) | |
download | postgresql-bbae09c2cb665a37380767ece239da72e5885f98.tar.gz postgresql-bbae09c2cb665a37380767ece239da72e5885f98.zip |
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
Diffstat (limited to 'src/backend/commands/tablecmds.c')
-rw-r--r-- | src/backend/commands/tablecmds.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/commands/tablecmds.c b/src/backend/commands/tablecmds.c index 18cea28df12..f6c9b48c097 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.1 2002/04/15 05:22:03 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/commands/tablecmds.c,v 1.2 2002/04/15 23:45:07 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -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); |