aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/enum.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2021-01-05 12:06:15 +1300
committerThomas Munro <tmunro@postgresql.org>2021-01-05 12:38:48 +1300
commitc0d4f6d897492727d4812679e6a94d12edbe016f (patch)
tree99f996cf92962bb4f7cbb79f04d578d28223664e /src/backend/utils/adt/enum.c
parent4bd3fad80e5c3bd107583dd9d32d4a47c045a3ec (diff)
downloadpostgresql-c0d4f6d897492727d4812679e6a94d12edbe016f.tar.gz
postgresql-c0d4f6d897492727d4812679e6a94d12edbe016f.zip
Rename "enum blacklist" to "uncommitted enums".
We agreed to remove this terminology and use something more descriptive. Discussion: https://postgr.es/m/20200615182235.x7lch5n6kcjq4aue%40alap3.anarazel.de
Diffstat (limited to 'src/backend/utils/adt/enum.c')
-rw-r--r--src/backend/utils/adt/enum.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/enum.c b/src/backend/utils/adt/enum.c
index 79117c4c904..0d892132a84 100644
--- a/src/backend/utils/adt/enum.c
+++ b/src/backend/utils/adt/enum.c
@@ -82,12 +82,12 @@ check_safe_enum_use(HeapTuple enumval_tup)
return;
/*
- * Check if the enum value is blacklisted. If not, it's safe, because it
+ * Check if the enum value is uncommitted. If not, it's safe, because it
* was made during CREATE TYPE AS ENUM and can't be shorter-lived than its
* owning type. (This'd also be false for values made by other
* transactions; but the previous tests should have handled all of those.)
*/
- if (!EnumBlacklisted(en->oid))
+ if (!EnumUncommitted(en->oid))
return;
/*