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:
@@ -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;
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user