diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2025-02-01 10:18:46 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2025-02-01 10:18:46 +0100 |
commit | a5709b5bb293a554913c4b1f6a9c58d1915ba3f7 (patch) | |
tree | 35ec5762f9a35f04a80ad009d660c6d03456a1bc /src/backend/commands/tablecmds.c | |
parent | 2452e71ff2fe642ff35535d48a728aeca2d61a8d (diff) | |
download | postgresql-a5709b5bb293a554913c4b1f6a9c58d1915ba3f7.tar.gz postgresql-a5709b5bb293a554913c4b1f6a9c58d1915ba3f7.zip |
Rename GistTranslateStratnum() to GistTranslateCompareType()
Follow up to commit 630f9a43cec. The previous name had become
confusing, because it doesn't actually translate a strategy number but
a CompareType into a strategy number. We might add the inverse at
some point, which would then probably be called something like
GistTranslateStratnum.
Reviewed-by: Mark Dilger <mark.dilger@enterprisedb.com>
Discussion: https://www.postgresql.org/message-id/flat/E72EAA49-354D-4C2E-8EB9-255197F55330@enterprisedb.com
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 d617c4bc63d..9827b27af8a 100644 --- a/src/backend/commands/tablecmds.c +++ b/src/backend/commands/tablecmds.c @@ -10016,7 +10016,7 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel, * ask the opclass what number it actually uses instead of our RT* * constants. */ - eqstrategy = GistTranslateStratnum(opclasses[i], cmptype); + eqstrategy = GistTranslateCompareType(opclasses[i], cmptype); if (eqstrategy == InvalidStrategy) { HeapTuple tuple; @@ -10041,7 +10041,7 @@ ATAddForeignKeyConstraint(List **wqueue, AlteredTableInfo *tab, Relation rel, * other index AMs support unique indexes. If we ever did have * other types of unique indexes, we'd need a way to determine * which operator strategy number is equality. (We could use - * something like GistTranslateStratnum.) + * something like GistTranslateCompareType.) */ if (amid != BTREE_AM_OID) elog(ERROR, "only b-tree indexes are supported for foreign keys"); |