git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: df80f9d) | patch
Avoid crash in rare case of concurrent DROP
Fri, 5 Nov 2021 15:29:35 +0000 (12:29 -0300)
Fri, 5 Nov 2021 15:29:35 +0000 (12:29 -0300)
commit d74b54b3ddf710926a44bf3f9c87c00e6f82d825
Avoid crash in rare case of concurrent DROP

When a role being dropped contains is referenced by catalog objects that
are concurrently also being dropped, a crash can result while trying to
construct the string that describes the objects. Suppress that by
ignoring objects whose descriptions are returned as NULL.

The majority of relevant codesites were already cautious about this
already; we had just missed a couple.

This is an old bug, so backpatch all the way back.

Reported-by: Alexander Lakhin <exclusion@gmail.com>
Discussion: https://postgr.es/m/17126-21887f04508cb5c8@postgresql.org
src/backend/catalog/dependency.c diff | blob | blame | history
src/backend/catalog/pg_shdepend.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /