summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-connect.c
diff options
context:
space:
mode:
authorAlvaro Herrera <alvherre@alvh.no-ip.org>2021-11-05 12:29:34 -0300
committerAlvaro Herrera <alvherre@alvh.no-ip.org>2021-11-05 12:29:34 -0300
commitbf5cdcfd5e444756378e60307a89b8cad16f65c0 (patch)
treeb4c1a7846541d061f94d7633feb142d2e5780e86 /src/interfaces/libpq/fe-connect.c
parentb7299b66469fe90c5cbb19c1d02d8e91fc95e4f2 (diff)
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
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
0 files changed, 0 insertions, 0 deletions