1
0
mirror of https://github.com/postgres/postgres.git synced 2025-11-07 19:06:32 +03:00

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
This commit is contained in:
Thomas Munro
2021-01-05 12:06:15 +13:00
parent 4bd3fad80e
commit c0d4f6d897
4 changed files with 55 additions and 53 deletions

View File

@@ -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;
/*