Re: BUG #17126: Server crashes on dropping user while enumerating owned objects that are droppped concurrently

Alvaro Herrera <alvherre@alvh.no-ip.org>

From: Alvaro Herrera <alvherre@alvh.no-ip.org>
To: Alexander Lakhin <exclusion@gmail.com>
Cc: pgsql-bugs@lists.postgresql.org
Date: 2021-11-05T15:35:04Z
Lists: pgsql-bugs
On 2021-Sep-02, Alexander Lakhin wrote:

> I've found another one in dependency.c:
> 
>         else if (behavior == DROP_RESTRICT)
>         {
>             char       *otherDesc = getObjectDescription(&extra->dependee,
>                                                          false);
> ...
>             pfree(otherDesc);
> I couldn't trigger a failure at this place yet, but maybe it's worth to
> fix here too.

Thank you, I patched this one as well.  Fix is now pushed to all branches.

-- 
Álvaro Herrera         PostgreSQL Developer  —  https://www.EnterpriseDB.com/
"Cada quien es cada cual y baja las escaleras como quiere" (JMSerrat)



Commits

  1. Avoid crash in rare case of concurrent DROP