summaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorTom Lane2021-07-11 16:54:24 +0000
committerTom Lane2021-07-11 16:54:24 +0000
commit6bd9ae173d372480ee8aed1164ec03e03daff0a1 (patch)
treee79da4e2ad9a949f831e516880ec203c7c0a14b4 /doc/src
parent52c168db955d4a3df79c41fc9da7f8b0de784305 (diff)
Lock the extension during ALTER EXTENSION ADD/DROP.
Although we were careful to lock the object being added or dropped, we failed to get any sort of lock on the extension itself. This allowed the ALTER to proceed in parallel with a DROP EXTENSION, which is problematic for a couple of reasons. If both commands succeeded we'd be left with a dangling link in pg_depend, which would cause problems later. Also, if the ALTER failed for some reason, it might try to print the extension's name, and that could result in a crash or (in older branches) a silly error message complaining about extension "(null)". Per bug #17098 from Alexander Lakhin. Back-patch to all supported branches. Discussion: https://postgr.es/m/17098-b960f3616c861f83@postgresql.org
Diffstat (limited to 'doc/src')
0 files changed, 0 insertions, 0 deletions