Commit 37afd3ef authored by Simon Riggs's avatar Simon Riggs

Shorten suffix of automatically created indexes to "_excl" when using

exclusion constraints, in line with string length of other pre-9.0 suffixes.
parent 260d843d
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.194 2010/02/26 02:00:39 momjian Exp $ * $PostgreSQL: pgsql/src/backend/commands/indexcmds.c,v 1.195 2010/03/22 15:24:11 sriggs Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -1391,7 +1391,7 @@ ChooseIndexName(const char *tabname, Oid namespaceId, ...@@ -1391,7 +1391,7 @@ ChooseIndexName(const char *tabname, Oid namespaceId,
{ {
indexname = ChooseRelationName(tabname, indexname = ChooseRelationName(tabname,
ChooseIndexNameAddition(colnames), ChooseIndexNameAddition(colnames),
"exclusion", "excl",
namespaceId); namespaceId);
} }
else if (isconstraint) else if (isconstraint)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment