aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/xml.c
diff options
context:
space:
mode:
authorNoah Misch <noah@leadboat.com>2024-06-27 19:21:05 -0700
committerNoah Misch <noah@leadboat.com>2024-06-27 19:21:12 -0700
commite038b7756df8a7487366d4e678c1e0d0d1ba5bbe (patch)
tree952f04f8725e0cc0f0674008b10129bbba4dca1c /src/backend/utils/adt/xml.c
parent578db9c9257de00ee695d670fb7d62b295467fe8 (diff)
downloadpostgresql-e038b7756df8a7487366d4e678c1e0d0d1ba5bbe.tar.gz
postgresql-e038b7756df8a7487366d4e678c1e0d0d1ba5bbe.zip
AccessExclusiveLock new relations just after assigning the OID.
This has no user-visible, important consequences, since other sessions' catalog scans can't find the relation until we commit. However, this unblocks introducing a rule about locks required to heap_update() a pg_class row. CREATE TABLE has been acquiring this lock eventually, but it can heap_update() pg_class.relchecks earlier. create_toast_table() has been acquiring only ShareLock. Back-patch to v12 (all supported versions), the plan for the commit relying on the new rule. Reviewed (in an earlier version) by Robert Haas. Discussion: https://postgr.es/m/20240611024525.9f.nmisch@google.com
Diffstat (limited to 'src/backend/utils/adt/xml.c')
0 files changed, 0 insertions, 0 deletions