From 37afd3ef4e72fff7708d23b108fbf3031e65956a Mon Sep 17 00:00:00 2001 From: Simon Riggs <simon@2ndQuadrant.com> Date: Mon, 22 Mar 2010 15:24:11 +0000 Subject: [PATCH] Shorten suffix of automatically created indexes to "_excl" when using exclusion constraints, in line with string length of other pre-9.0 suffixes. --- src/backend/commands/indexcmds.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/commands/indexcmds.c b/src/backend/commands/indexcmds.c index 380eca1287..4b3cf5e545 100644 --- a/src/backend/commands/indexcmds.c +++ b/src/backend/commands/indexcmds.c @@ -8,7 +8,7 @@ * * * 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, { indexname = ChooseRelationName(tabname, ChooseIndexNameAddition(colnames), - "exclusion", + "excl", namespaceId); } else if (isconstraint)